Class: Dhall::Text
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Expression
#&, #*, #+, #as_dhall, #cache_key, #call, #concat, decode, #deep_merge, #deep_merge_type, #dhall_eq, #digest, #fetch, #fusion, #merge, #normalize, #resolve, #shift, #slice, #substitute, #to_cbor, #to_proc, #|
Class Method Details
.as_dhall ⇒ Object
1134
1135
1136
|
# File 'lib/dhall/ast.rb', line 1134
def self.as_dhall
Builtins[:Text]
end
|
Instance Method Details
#<<(other) ⇒ Object
1142
1143
1144
|
# File 'lib/dhall/ast.rb', line 1142
def <<(other)
with(value: value + other.value)
end
|
#===(other) ⇒ Object
1150
1151
1152
|
# File 'lib/dhall/ast.rb', line 1150
def ===(other)
self == other || value === other
end
|
#as_json ⇒ Object
1154
1155
1156
|
# File 'lib/dhall/ast.rb', line 1154
def as_json
[18, value]
end
|
#empty? ⇒ Boolean
1138
1139
1140
|
# File 'lib/dhall/ast.rb', line 1138
def empty?
value.empty?
end
|
#to_s ⇒ Object
1146
1147
1148
|
# File 'lib/dhall/ast.rb', line 1146
def to_s
value
end
|