Class: Leftovers::AST::TrueNode
- Inherits:
-
Node
- Object
- Parser::AST::Node
- Node
- Leftovers::AST::TrueNode
show all
- Defined in:
- lib/leftovers/ast/true_node.rb
Instance Method Summary
collapse
Methods inherited from Node
#arguments, #as_arguments_list, #block_given?, #first, #hash?, #initialize, #kwargs, #name, #parent, #parent=, #path, #positional_arguments, #privacy, #privacy=, #proc?, #receiver, #second, #sym?, #updated
Instance Method Details
#scalar? ⇒ Boolean
10
11
12
|
# File 'lib/leftovers/ast/true_node.rb', line 10
def scalar?
true
end
|
#to_s ⇒ Object
Also known as:
to_literal_s
14
15
16
|
# File 'lib/leftovers/ast/true_node.rb', line 14
def to_s
'true'
end
|
#to_scalar_value ⇒ Object
6
7
8
|
# File 'lib/leftovers/ast/true_node.rb', line 6
def to_scalar_value
true
end
|
#to_sym ⇒ Object
19
20
21
|
# File 'lib/leftovers/ast/true_node.rb', line 19
def to_sym
:true
end
|