Class: ActiveBlocks::Decorator::Attributes::Definition
- Inherits:
-
Object
- Object
- ActiveBlocks::Decorator::Attributes::Definition
- Defined in:
- lib/active_blocks/decorator/attributes/definition.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(name, options = {}) ⇒ Definition
constructor
A new instance of Definition.
Constructor Details
#initialize(name, options = {}) ⇒ Definition
Returns a new instance of Definition.
9 10 11 12 |
# File 'lib/active_blocks/decorator/attributes/definition.rb', line 9 def initialize(name, ={}) @name = name @options = end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
7 8 9 |
# File 'lib/active_blocks/decorator/attributes/definition.rb', line 7 def name @name end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
7 8 9 |
# File 'lib/active_blocks/decorator/attributes/definition.rb', line 7 def @options end |