Class: Leftovers::AST::NumericNode
- Inherits:
-
Node
- Object
- Parser::AST::Node
- Node
- Leftovers::AST::NumericNode
show all
- Defined in:
- lib/leftovers/ast/numeric_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
8
9
10
|
# File 'lib/leftovers/ast/numeric_node.rb', line 8
def scalar?
true
end
|
#to_s ⇒ Object
Also known as:
to_literal_s
12
13
14
|
# File 'lib/leftovers/ast/numeric_node.rb', line 12
def to_s
to_scalar_value.to_s
end
|
#to_sym ⇒ Object
17
18
19
|
# File 'lib/leftovers/ast/numeric_node.rb', line 17
def to_sym
to_s.to_sym
end
|