Class: Leftovers::AST::SymNode

Inherits:
Node
  • Object
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

Constructor Details

This class inherits a constructor from Leftovers::AST::Node

Instance Method Details

#scalar?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/leftovers/ast/sym_node.rb', line 10

def scalar?
  true
end

#sym?Boolean

Returns:

  • (Boolean)


20
21
22
# File 'lib/leftovers/ast/sym_node.rb', line 20

def sym?
  true
end

#to_sObject 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