Class: Iceberg::ListType

Inherits:
Type
  • Object
show all
Defined in:
lib/iceberg/types.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_fieldObject (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

#inspectObject



116
117
118
# File 'lib/iceberg/types.rb', line 116

def inspect
  "#<#{self.class.name} element_field=#{@element_field.inspect}>"
end