Class: Prettyrb::Nodes::DefNode

Inherits:
BaseNode
  • Object
show all
Defined in:
lib/prettyrb/nodes/def_node.rb

Instance Method Summary collapse

Methods inherited from BaseNode

#initialize, #parent, #string?

Constructor Details

This class inherits a constructor from Prettyrb::Nodes::BaseNode

Instance Method Details

#argsObject



8
9
10
# File 'lib/prettyrb/nodes/def_node.rb', line 8

def args
  children[1]
end

#bodyObject



12
13
14
# File 'lib/prettyrb/nodes/def_node.rb', line 12

def body
  children[2]
end

#nameObject



4
5
6
# File 'lib/prettyrb/nodes/def_node.rb', line 4

def name
  children[0]
end