Class: Gettc::TArray
Instance Attribute Summary collapse
-
#subtype ⇒ Object
Returns the value of attribute subtype.
Instance Method Summary collapse
- #==(ary) ⇒ Object
-
#initialize(subtype) ⇒ TArray
constructor
A new instance of TArray.
- #obj? ⇒ Boolean
Methods inherited from Type
Constructor Details
#initialize(subtype) ⇒ TArray
Returns a new instance of TArray.
57 58 59 60 |
# File 'lib/gettc/types.rb', line 57 def initialize(subtype) raise UnsupportedType.new(subtype) unless subtype.is_a?(Type) @subtype = subtype end |
Instance Attribute Details
#subtype ⇒ Object
Returns the value of attribute subtype.
55 56 57 |
# File 'lib/gettc/types.rb', line 55 def subtype @subtype end |
Instance Method Details
#==(ary) ⇒ Object
62 63 64 |
# File 'lib/gettc/types.rb', line 62 def ==(ary) ary.is_a?(TArray) && @subtype == ary.subtype end |
#obj? ⇒ Boolean
66 67 68 |
# File 'lib/gettc/types.rb', line 66 def obj? true end |