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