Module: Dhall::Parser::Builtin

Defined in:
lib/dhall/parser.rb

Instance Method Summary collapse

Instance Method Details

#valueObject



332
333
334
335
336
337
# File 'lib/dhall/parser.rb', line 332

def value
  return Dhall::Bool.new(value: true) if string == "True"
  return Dhall::Bool.new(value: false) if string == "False"

  Dhall::Builtins[string.to_sym]
end