Sha256: 3d4dc028d48086e898dd904837ae32bcfea176cf732e3bb8eae12ce07ef7438a

Contents?: true

Size: 358 Bytes

Versions: 13

Compression:

Stored size: 358 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, &blk)
      Keynote.present(self, *objects, &blk)
    end
    alias k present
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
keynote-1.1.1 lib/keynote/helper.rb
keynote-1.1.0 lib/keynote/helper.rb
keynote-1.0.0 lib/keynote/helper.rb
keynote-0.3.1 lib/keynote/helper.rb
keynote-0.3.0 lib/keynote/helper.rb
keynote-0.2.3 lib/keynote/helper.rb
keynote-0.2.2 lib/keynote/helper.rb
keynote-0.2.1 lib/keynote/helper.rb
keynote-0.2.0 lib/keynote/helper.rb
keynote-0.2.0pre3 lib/keynote/helper.rb
keynote-0.2.0pre2 lib/keynote/helper.rb
keynote-0.2.0pre1 lib/keynote/helper.rb
keynote-0.1.3 lib/keynote/helper.rb