Sha256: 327e58e170df7f6e4535467cb3a4bc35412d11ce6c2fe9528a9df3c6f3549bfe

Contents?: true

Size: 346 Bytes

Versions: 3

Compression:

Stored size: 346 Bytes

Contents

# encoding: UTF-8

module Keynote
  # `Keynote::Helper` is mixed into `ActionView::Base`, providing a `present`
  # method (aliased to `k`) for instantiating presenters.
  module Helper
    # Instantiate a presenter.
    # @see Keynote.present
    def present(*objects)
      Keynote.present(self, *objects)
    end
    alias k present
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
keynote-0.1.2 lib/keynote/helper.rb
keynote-0.1.1 lib/keynote/helper.rb
keynote-0.1.0 lib/keynote/helper.rb