class Dhall::Builtins::Natural_toInteger

Protected Instance Methods

uncurried_call(nat) click to toggle source
# File lib/dhall/builtins.rb, line 178
def uncurried_call(nat)
        return unfill(nat) unless nat.is_a?(Dhall::Natural)

        Dhall::Integer.new(value: nat.value)
end