Sha256: 59b54e30e34b07093aaaff6aa4e208ea968fc0d824fa56d5cbb958b6fa9c1c7b

Contents?: true

Size: 196 Bytes

Versions: 1

Compression:

Stored size: 196 Bytes

Contents

module Kernel
  def with(object, &block)
    other_self = eval "self", block.binding
    to_match   = Ataulfo::PatternMatching.new(object, other_self)
    to_match.instance_eval(&block)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ataulfo-1.0.1 lib/ataulfo/kernel_extension.rb