Module: Gdsii::Access::Layer

Included in:
Boundary, Box, Node, Path, Text
Defined in:
lib/gdsii/mixins.rb

Overview

Access layer attribute

Instance Method Summary collapse

Instance Method Details

#layerObject

Get the layer number (returns Fixnum)



19
# File 'lib/gdsii/mixins.rb', line 19

def layer() @records.get_data(GRT_LAYER); end

#layer=(val) ⇒ Object

Set the layer number



22
# File 'lib/gdsii/mixins.rb', line 22

def layer=(val) @records.set(GRT_LAYER, val); end

#layer_recordObject

Get the layer record (returns Record)



16
# File 'lib/gdsii/mixins.rb', line 16

def layer_record() @records.get(GRT_LAYER); end