Class: AmberVM::Classes::Association
- Inherits:
-
Hash
- Object
- Hash
- AmberVM::Classes::Association
show all
- Extended by:
- Plugin
- Defined in:
- lib/amber/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/amber/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/amber/classes/association.rb', line 9
def data_type
:list
end
|
#variables ⇒ Object
13
14
15
|
# File 'lib/amber/classes/association.rb', line 13
def variables
@variables ||= {}
end
|