lib/elixirize.rb in elixirize-0.4.0 vs lib/elixirize.rb in elixirize-0.5.0
- old
+ new
@@ -1,18 +1,16 @@
require "elixirize/version"
module Elixirize
::Object.class_eval do
- def ᐅ other, *args
- other.call(self, *args)
+ def ᐅ other, *args, &block
+ other.call(self, *args, &block)
end
alias_method :λ, :lambda
end
::Symbol.class_eval do
- def ~
- λ {|obj, *args| obj.public_send self, *args }
- end
+ alias_method :~, :to_proc
end
end