Class: Dhall::Text
Class Method Summary
collapse
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, #|
Class Method Details
.as_dhall ⇒ Object
1271
1272
1273
|
# File 'lib/dhall/ast.rb', line 1271
def self.as_dhall
Builtins[:Text]
end
|
Instance Method Details
#<<(other) ⇒ Object
1279
1280
1281
|
# File 'lib/dhall/ast.rb', line 1279
def <<(other)
with(value: value + other.value)
end
|
#===(other) ⇒ Object
1287
1288
1289
|
# File 'lib/dhall/ast.rb', line 1287
def ===(other)
self == other || value === other
end
|
#as_json ⇒ Object
1291
1292
1293
|
# File 'lib/dhall/ast.rb', line 1291
def as_json
[18, value]
end
|
#empty? ⇒ Boolean
1275
1276
1277
|
# File 'lib/dhall/ast.rb', line 1275
def empty?
value.empty?
end
|
#to_s ⇒ Object
1283
1284
1285
|
# File 'lib/dhall/ast.rb', line 1283
def to_s
value
end
|