Module: Ribbon::CoreExtensions::Object

Defined in:
lib/ribbon/core_extensions/object.rb,
lib/ribbon/core_extensions/object/option_scope.rb,
lib/ribbon/core_extensions/object/yield_or_eval.rb

Overview

Methods available to all objects.

Author:

  • Matheus Afonso Martins Moreira

Since:

  • 0.6.0

Instance Method Summary collapse

Instance Method Details

#option_scope(options = {}, &block) ⇒ Object

Applies an option scope to this object, where all methods called in the block receive the specified options.

See Also:

Since:

  • 0.6.0



12
13
14
# File 'lib/ribbon/core_extensions/object/option_scope.rb', line 12

def option_scope(options = {}, &block)
  Ribbon::Options.apply_to self, options, &block
end