module Funkify::ClassMethods
Public Instance Methods
auto_curry(*names)
click to toggle source
# File lib/funkify.rb, line 82 def auto_curry(*names) if names.empty? Funkify.auto_curry_all_methods(self) else Funkify.auto_curry_some_methods(names, self) end end
point_free(&block)
click to toggle source
# File lib/funkify.rb, line 90 def point_free(&block) -> (*args) do b = instance_exec(&block).curry args.empty? ? b : b[*args] end end