Class: Gettc::TArray

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Type

#to_s

Constructor Details

#initialize(subtype) ⇒ TArray

Returns a new instance of TArray.

Raises:



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

#subtypeObject

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

Returns:

  • (Boolean)


66
67
68
# File 'lib/gettc/types.rb', line 66

def obj?
  true
end