Sha256: fc574368323ef6a5914d0039cc80adbb01e8009e8cec7546cb9bcb6c65662272

Contents?: true

Size: 138 Bytes

Versions: 2

Compression:

Stored size: 138 Bytes

Contents

class AddN < MethodDecorator
  def initialize(n)
    @n = n
  end

  def call(orig, *args, &blk)
    orig.call(*args, &blk) + @n
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
method_decorators-0.9.1 spec/support/add_n.rb
method_decorators-0.9.0 spec/support/add_n.rb