Class: Iceberg::StructType
Instance Attribute Summary collapse
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(*fields) ⇒ StructType
constructor
A new instance of StructType.
- #inspect ⇒ Object
Constructor Details
#initialize(*fields) ⇒ StructType
Returns a new instance of StructType.
92 93 94 |
# File 'lib/iceberg/types.rb', line 92 def initialize(*fields) @fields = fields end |
Instance Attribute Details
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
90 91 92 |
# File 'lib/iceberg/types.rb', line 90 def fields @fields end |
Instance Method Details
#==(other) ⇒ Object
96 97 98 |
# File 'lib/iceberg/types.rb', line 96 def ==(other) other.is_a?(self.class) && other.fields == @fields end |
#inspect ⇒ Object
100 101 102 |
# File 'lib/iceberg/types.rb', line 100 def inspect "#<#{self.class.name} fields=#{@fields.inspect}>" end |