Class: Leftovers::AST::DefsNode

Inherits:
Node
  • Object
show all
Defined in:
lib/leftovers/ast/defs_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, #scalar?, #second, #sym?, #to_scalar_value, #updated

Constructor Details

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

Instance Method Details

#to_sObject Also known as: to_literal_s



9
10
11
# File 'lib/leftovers/ast/defs_node.rb', line 9

def to_s
  name.to_s
end