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.
Instance Method Summary collapse
-
#option_scope(options = {}, &block) ⇒ Object
Applies an option scope to this object, where all methods called in the block receive the specified options.
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.
12 13 14 |
# File 'lib/ribbon/core_extensions/object/option_scope.rb', line 12 def option_scope( = {}, &block) Ribbon::Options.apply_to self, , &block end |