Class: Rea::AspectType::Identification::Aspect
- Inherits:
-
Base
- Object
- Base
- Rea::AspectType::Identification::Aspect
show all
- Defined in:
- lib/rea/aspect_type/identification.rb
Instance Attribute Summary
Attributes inherited from Base
#base
Instance Method Summary
collapse
Methods inherited from Base
#initialize
Instance Method Details
#identifier(*names) ⇒ Object
27
28
29
30
31
32
33
34
|
# File 'lib/rea/aspect_type/identification.rb', line 27
def identifier *names
$options = names.
names.each do |name|
$default_id_type = "#{base.name.underscore}.#{name}"
$options = {:name=>name,:type=>$default_id_type}.merge($options)
identifiers[name] = Setup.new($options)
end
end
|
#identifiers ⇒ Object
23
24
25
|
# File 'lib/rea/aspect_type/identification.rb', line 23
def identifiers
@identifiers ||= {}
end
|