Class: RVM::Classes::Association
- Inherits:
-
Hash
- Object
- Hash
- RVM::Classes::Association
show all
- Extended by:
- Plugin
- Defined in:
- lib/rvm/classes/association.rb
Constant Summary
collapse
- @@type =
:association
Instance Method Summary
collapse
Methods included from Plugin
helper, included, plugin_host, plugin_id, register_for
Constructor Details
#initialize(source = {}, sepperator = ' ') ⇒ Association
Returns a new instance of Association.
27
28
29
30
31
32
|
# File 'lib/rvm/classes/association.rb', line 27
def initialize source= {}, sepperator = ' '
super()
if source.is_a?(::Hash) self.merge! source
end
end
|
Instance Method Details
#data_type ⇒ Object
9
10
11
|
# File 'lib/rvm/classes/association.rb', line 9
def data_type
:list
end
|
#functions ⇒ Object
18
19
20
21
22
23
24
25
|
# File 'lib/rvm/classes/association.rb', line 18
def functions
@functions ||= {
'size' => RVM::Functions[:size],
'length' => RVM::Functions[:size],
'get' => RVM::Functions[:assoc_get],
'set' => RVM::Functions[:assoc_set],
}
end
|
#variables ⇒ Object
13
14
15
|
# File 'lib/rvm/classes/association.rb', line 13
def variables
@variables ||= {}
end
|