Class: Leftovers::AST::ModuleNode

Inherits:
Node
  • Object
show all
Defined in:
lib/leftovers/ast/module_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_literal_s, #to_scalar_value, #updated

Constructor Details

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

Instance Method Details

#nameObject Also known as: to_sym



6
7
8
# File 'lib/leftovers/ast/module_node.rb', line 6

def name
  first.name
end

#to_sObject



11
12
13
# File 'lib/leftovers/ast/module_node.rb', line 11

def to_s
  name.to_s
end