Class: HALPresenter::Namespace::Executor

Inherits:
Object
  • Object
show all
Defined in:
lib/hal_presenter/namespace.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#curieObject (readonly)

Returns the value of attribute curie.



4
5
6
# File 'lib/hal_presenter/namespace.rb', line 4

def curie
  @curie
end

#presenterObject (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