Class: HALDecorator::Embedded::Embed
- Defined in:
- lib/hal_decorator/embedded.rb
Instance Attribute Summary collapse
-
#decorator_class ⇒ Object
readonly
Returns the value of attribute decorator_class.
Attributes inherited from Property
Instance Method Summary collapse
-
#initialize(name, value = nil, decorator_class: nil, &block) ⇒ Embed
constructor
A new instance of Embed.
Methods inherited from Property
#change_scope, #method_missing, #respond_to_missing?, #value
Constructor Details
#initialize(name, value = nil, decorator_class: nil, &block) ⇒ Embed
Returns a new instance of Embed.
8 9 10 11 |
# File 'lib/hal_decorator/embedded.rb', line 8 def initialize(name, value = nil, decorator_class: nil, &block) super(name, value, &block) @decorator_class = decorator_class end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class HALDecorator::Property
Instance Attribute Details
#decorator_class ⇒ Object (readonly)
Returns the value of attribute decorator_class.
6 7 8 |
# File 'lib/hal_decorator/embedded.rb', line 6 def decorator_class @decorator_class end |