Class: Leftovers::AST::ModuleNode
- Defined in:
- lib/leftovers/ast/module_node.rb
Instance Method Summary collapse
- #name ⇒ Object (also: #to_sym)
- #to_s ⇒ Object
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
#name ⇒ Object Also known as: to_sym
6 7 8 |
# File 'lib/leftovers/ast/module_node.rb', line 6 def name first.name end |
#to_s ⇒ Object
11 12 13 |
# File 'lib/leftovers/ast/module_node.rb', line 11 def to_s name.to_s end |