Sha256: f5b905aa531869622df6a866daac1b9e969cdf8cd7495021da204c9a25afcdcd

Contents?: true

Size: 272 Bytes

Versions: 1

Compression:

Stored size: 272 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.send self, *args }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
elixirize-0.3.0 lib/elixirize.rb