Class: Conject::ObjectDefinition
- Defined in:
- lib/conject/object_definition.rb
Instance Attribute Summary collapse
-
#component_names ⇒ Object
readonly
Returns the value of attribute component_names.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ ObjectDefinition
constructor
A new instance of ObjectDefinition.
Constructor Details
#initialize(opts = {}) ⇒ ObjectDefinition
Returns a new instance of ObjectDefinition.
6 7 8 9 |
# File 'lib/conject/object_definition.rb', line 6 def initialize(opts={}) @owner = opts[:owner] @component_names = opts[:component_names] || [] end |
Instance Attribute Details
#component_names ⇒ Object (readonly)
Returns the value of attribute component_names.
4 5 6 |
# File 'lib/conject/object_definition.rb', line 4 def component_names @component_names end |
#owner ⇒ Object (readonly)
Returns the value of attribute owner.
4 5 6 |
# File 'lib/conject/object_definition.rb', line 4 def owner @owner end |