Class: Dhall::Text

Inherits:
Expression show all
Defined in:
lib/dhall/ast.rb

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_dhallObject



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_jsonObject



1291
1292
1293
# File 'lib/dhall/ast.rb', line 1291

def as_json
	[18, value]
end

#empty?Boolean

Returns:

  • (Boolean)


1275
1276
1277
# File 'lib/dhall/ast.rb', line 1275

def empty?
	value.empty?
end

#to_sObject



1283
1284
1285
# File 'lib/dhall/ast.rb', line 1283

def to_s
	value
end