Module: ThinkFeelDoEngine::PresentersHelper

Defined in:
app/helpers/think_feel_do_engine/presenters_helper.rb

Overview

Used to present a presenter classes within a view.

Instance Method Summary collapse

Instance Method Details

#present(options, klass) {|klass.new(options)| ... } ⇒ Object

Yields:

  • (klass.new(options))


5
6
7
# File 'app/helpers/think_feel_do_engine/presenters_helper.rb', line 5

def present(options, klass)
  yield klass.new(options)
end