Class: Rasti::Types::Array
- Inherits:
-
Object
- Object
- Rasti::Types::Array
- Includes:
- Castable
- Defined in:
- lib/rasti/types/array.rb
Instance Attribute Summary collapse
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Class Method Summary collapse
Instance Method Summary collapse
- #to_s ⇒ Object (also: #inspect)
Methods included from Castable
Instance Attribute Details
#type ⇒ Object (readonly)
Returns the value of attribute type.
7 8 9 |
# File 'lib/rasti/types/array.rb', line 7 def type @type end |
Class Method Details
.[](type) ⇒ Object
9 10 11 |
# File 'lib/rasti/types/array.rb', line 9 def self.[](type) new type end |
Instance Method Details
#to_s ⇒ Object Also known as: inspect
13 14 15 |
# File 'lib/rasti/types/array.rb', line 13 def to_s "#{self.class}[#{type}]" end |