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))


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

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