Class: LangScan::Type::TypeInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/langscan/_type.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type, name) ⇒ TypeInfo

Returns a new instance of TypeInfo.



49
50
51
52
53
# File 'lib/langscan/_type.rb', line 49

def initialize(type, name)
  @type = type
  @name = name
  TypeRegistry[@type] = true
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



55
56
57
# File 'lib/langscan/_type.rb', line 55

def name
  @name
end

#typeObject (readonly)

Returns the value of attribute type.



54
55
56
# File 'lib/langscan/_type.rb', line 54

def type
  @type
end