Module: Fixjour::Deprecation::MergingProxy

Defined in:
lib/fixjour/deprecation.rb

Instance Method Summary collapse

Instance Method Details

#process(*args) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# File 'lib/fixjour/deprecation.rb', line 4

def process(*args)
  raise DeprecatedMergeAttempt.new(<<-END
  You are attempting to call process on the class proxy.
  This behavior was recently deprecated. In order to process
  the overrides hash, pass two block arguments:

    define_builder(Foo) do |klass, overrides|
      overrides.process(:bar) do |bar|
        overrides[:bar] = 'overridden'
      end

      klass.new(:name => 'fizz')
    end
  END
  )
end