Sha256: b075574086892272b2b2be7948f0ffe708c8925c47617c57d07f2872bed9f076

Contents?: true

Size: 279 Bytes

Versions: 1

Compression:

Stored size: 279 Bytes

Contents

require "elixirize/version"

module Elixirize
  ::Object.class_eval do

    def ᐅ other, *args
      other.call(self, *args)
    end

    alias_method :λ, :lambda
  end

  ::Symbol.class_eval do
    def ~
      λ {|obj, *args| obj.public_send self, *args }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
elixirize-0.4.0 lib/elixirize.rb