Class: Rubicante::TypeGroup

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/rubicante/type_group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTypeGroup

Returns a new instance of TypeGroup.



10
11
12
# File 'lib/rubicante/type_group.rb', line 10

def initialize
  @types  = {}
end

Instance Attribute Details

#typesObject

Returns the value of attribute types.



8
9
10
# File 'lib/rubicante/type_group.rb', line 8

def types
  @types
end

Instance Method Details

#[](type_name) ⇒ Object



14
15
16
# File 'lib/rubicante/type_group.rb', line 14

def [](type_name)
  @types[type_name] ||= Type.new(type_name)
end