Class: HALPresenter::Embedded::Embed
- Defined in:
- lib/hal_presenter/embedded.rb
Constant Summary
Constants inherited from Property
Instance Attribute Summary collapse
-
#presenter_class ⇒ Object
readonly
Returns the value of attribute presenter_class.
Attributes inherited from Property
Instance Method Summary collapse
-
#initialize(name, value = NO_VALUE, **kwargs, &block) ⇒ Embed
constructor
A new instance of Embed.
Methods inherited from Property
#change_context, #nested_depth_ok?, #value
Constructor Details
#initialize(name, value = NO_VALUE, **kwargs, &block) ⇒ Embed
Returns a new instance of Embed.
11 12 13 14 |
# File 'lib/hal_presenter/embedded.rb', line 11 def initialize(name, value = NO_VALUE, **kwargs, &block) @presenter_class = kwargs.delete(:presenter_class) super(name, value, **kwargs, &block) end |
Instance Attribute Details
#presenter_class ⇒ Object (readonly)
Returns the value of attribute presenter_class.
9 10 11 |
# File 'lib/hal_presenter/embedded.rb', line 9 def presenter_class @presenter_class end |