Sha256: 20727a6a0282a66e3b8d2226c974abb379aec686dd234f20b640f4eeb8eea85b

Contents?: true

Size: 204 Bytes

Versions: 1

Compression:

Stored size: 204 Bytes

Contents

# Require `beethoven/proc` to monkey patch Proc with these composition helpers.
class Proc
  def *(other)
    -> x { call(other.call(x)) }
  end

  def |(other)
    -> x { other.call(call(x)) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
beethoven-0.1.0 lib/beethoven/proc.rb