Class: Dhall::Builtin
- Inherits:
-
Expression
- Object
- Expression
- Dhall::Builtin
- Defined in:
- lib/dhall/builtins.rb
Direct Known Subclasses
BuiltinFunction, Dhall::Builtins::Bool, Dhall::Builtins::Double, Dhall::Builtins::Integer, Dhall::Builtins::Kind, Dhall::Builtins::List, Dhall::Builtins::Natural, Dhall::Builtins::None, Dhall::Builtins::Optional, Dhall::Builtins::Sort, Dhall::Builtins::Text, Dhall::Builtins::Type
Instance Method Summary collapse
Methods inherited from Expression
#&, #*, #+, #annotate, #as_dhall, #cache_key, #call, #concat, decode, #deep_merge, #deep_merge_type, #dhall_eq, #digest, #fetch, #fusion, #merge, #normalize, #resolve, #shift, #slice, #substitute, #to_binary, #to_cbor, #to_proc, #to_s, #|
Instance Method Details
#as_json ⇒ Object
9 10 11 |
# File 'lib/dhall/builtins.rb', line 9 def as_json self.class.name&.split(/::/)&.last&.tr("_", "/").to_s end |