lib/elixirize.rb in elixirize-0.2.0 vs lib/elixirize.rb in elixirize-0.3.0

- old
+ new

@@ -1,9 +1,18 @@ 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