Module: Oprah

Extended by:
Oprah
Included in:
Oprah
Defined in:
lib/oprah.rb,
lib/oprah/cache.rb,
lib/oprah/railtie.rb,
lib/oprah/version.rb,
lib/oprah/presenter.rb,
lib/oprah/test_helpers.rb,
lib/oprah/controller_helpers.rb

Overview

The Oprah namespace.

Since:

  • 0.0.1

Defined Under Namespace

Modules: ControllerHelpers, TestHelpers Classes: Cache, Presenter, Railtie

Constant Summary collapse

VERSION =

Returns The Oprah library version.

Returns:

  • (String)

    The Oprah library version.

Since:

  • 0.0.1

"0.1.2"

Instance Method Summary collapse

Instance Method Details

#present(*args, **kwargs, &block) ⇒ Object

Presents a single object.

See Also:

Since:

  • 0.0.1


31
32
33
# File 'lib/oprah.rb', line 31

def present(*args, **kwargs, &block)
  Presenter.present(*args, **kwargs, &block)
end

#present_many(*args, **kwargs, &block) ⇒ Object

Presents a collection of objects.

See Also:

Since:

  • 0.0.1


38
39
40
# File 'lib/oprah.rb', line 38

def present_many(*args, **kwargs, &block)
  Presenter.present_many(*args, **kwargs, &block)
end