Method: Origen::Location::Map::ClassMethods#constructor

Defined in:
lib/origen/location/map.rb

#constructor(&block) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/origen/location/map.rb', line 16

def constructor(&block)
  if defining?
    constructors[@x] = block
  else
    constructors[:default] = block
  end
end