Class: Mack::Utils::OptionMerger

Inherits:
Object
  • Object
show all
Defined in:
lib/mack-facets/utils/options_merger.rb

Overview

:nodoc:

Instance Method Summary collapse

Constructor Details

#initialize(context, options) ⇒ OptionMerger

Returns a new instance of OptionMerger.



8
9
10
# File 'lib/mack-facets/utils/options_merger.rb', line 8

def initialize(context, options)
  @context, @options = context, options
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(method, *arguments, &block) ⇒ Object (private)



13
14
15
16
# File 'lib/mack-facets/utils/options_merger.rb', line 13

def method_missing(method, *arguments, &block)
  merge_argument_options! arguments
  @context.send(method, *arguments, &block)
end