Class: ScaleRb::OldRegistry::TypeExp::ArrayType

Inherits:
Object
  • Object
show all
Defined in:
lib/scale_rb/old_registry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(item, len) ⇒ ArrayType

Returns a new instance of ArrayType.



335
336
337
338
# File 'lib/scale_rb/old_registry.rb', line 335

def initialize(item, len)
  @item = item
  @len = len
end

Instance Attribute Details

#itemObject (readonly)

Returns the value of attribute item.



333
334
335
# File 'lib/scale_rb/old_registry.rb', line 333

def item
  @item
end

#lenObject (readonly)

Returns the value of attribute len.



333
334
335
# File 'lib/scale_rb/old_registry.rb', line 333

def len
  @len
end

Instance Method Details

#to_sObject



340
341
342
# File 'lib/scale_rb/old_registry.rb', line 340

def to_s
  "[#{item}; #{len}]"
end