Method: Plugins::AroundStack#push
- Defined in:
- lib/plugins/around_stack.rb
#push(&block) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/plugins/around_stack.rb', line 12 def push(&block) raise Errors::Error, "Must pass block" unless block_given? AroundWrapper.new(self, subject, &block).tap { |wrapper| @_stack.push(wrapper) } end |