Class: HALPresenter::Namespace::Executor
- Inherits:
-
Object
- Object
- HALPresenter::Namespace::Executor
- Defined in:
- lib/hal_presenter/namespace.rb
Instance Attribute Summary collapse
-
#curie ⇒ Object
readonly
Returns the value of attribute curie.
-
#presenter ⇒ Object
readonly
Returns the value of attribute presenter.
Instance Method Summary collapse
-
#initialize(presenter, curie) ⇒ Executor
constructor
A new instance of Executor.
- #run(block) ⇒ Object
Constructor Details
#initialize(presenter, curie) ⇒ Executor
Returns a new instance of Executor.
6 7 8 9 |
# File 'lib/hal_presenter/namespace.rb', line 6 def initialize(presenter, curie) @presenter = presenter @curie = curie end |
Instance Attribute Details
#curie ⇒ Object (readonly)
Returns the value of attribute curie.
4 5 6 |
# File 'lib/hal_presenter/namespace.rb', line 4 def curie @curie end |
#presenter ⇒ Object (readonly)
Returns the value of attribute presenter.
4 5 6 |
# File 'lib/hal_presenter/namespace.rb', line 4 def presenter @presenter end |
Instance Method Details
#run(block) ⇒ Object
11 12 13 |
# File 'lib/hal_presenter/namespace.rb', line 11 def run(block) instance_exec(&block) if block end |