Module: Oprah

Extended by:
Oprah
Included in:
Oprah
Defined in:
lib/oprah.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: Presenter, Railtie

Constant Summary collapse

VERSION =

Returns The Oprah library version.

Returns:

  • (String)

    The Oprah library version.

Since:

  • 0.0.1

"0.3.0"

Instance Method Summary collapse

Instance Method Details

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

Presents a single object.

See Also:

Since:

  • 0.0.1



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

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



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

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