Class: Iceberg::ListType
Instance Attribute Summary collapse
-
#element_field ⇒ Object
readonly
Returns the value of attribute element_field.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(element_field) ⇒ ListType
constructor
A new instance of ListType.
- #inspect ⇒ Object
Constructor Details
#initialize(element_field) ⇒ ListType
Returns a new instance of ListType.
108 109 110 |
# File 'lib/iceberg/types.rb', line 108 def initialize(element_field) @element_field = element_field end |
Instance Attribute Details
#element_field ⇒ Object (readonly)
Returns the value of attribute element_field.
106 107 108 |
# File 'lib/iceberg/types.rb', line 106 def element_field @element_field end |
Instance Method Details
#==(other) ⇒ Object
112 113 114 |
# File 'lib/iceberg/types.rb', line 112 def ==(other) other.is_a?(self.class) && other.element_field == @element_field end |
#inspect ⇒ Object
116 117 118 |
# File 'lib/iceberg/types.rb', line 116 def inspect "#<#{self.class.name} element_field=#{@element_field.inspect}>" end |