Method: Plugins::AroundStack#dup

Defined in:
lib/plugins/around_stack.rb

#dupObject


20
21
22
23
24
25
26
# File 'lib/plugins/around_stack.rb', line 20

def dup
  AroundStack.new(subject, scope).tap { |stack|
    @_stack.each { |wrapper|
      stack.push(&wrapper.block)
    }
  }
end