class Dhall::BuiltinFunction
Public Instance Methods
as_json()
click to toggle source
Calls superclass method
Dhall::Builtin#as_json
# File lib/dhall/builtins.rb, line 34 def as_json if (unfilled = unfill) != self unfilled.as_json else super end end
call(*new_args)
click to toggle source
# File lib/dhall/builtins.rb, line 25 def call(*new_args) args = partial_application + new_args if args.length == method(:uncurried_call).arity uncurried_call(*args) else with(partial_application: args) end end
unfill(*args)
click to toggle source
# File lib/dhall/builtins.rb, line 19 def unfill(*args) (args.empty? ? partial_application : args).reduce(self.class.new) do |f, arg| Application.new(function: f, argument: arg) end end