Class: Object

Inherits:
BasicObject
Defined in:
lib/parsing_nesting/grammar.rb

Instance Method Summary collapse

Instance Method Details

#tap {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Object)

    the object that the method was called on



9
10
11
12
# File 'lib/parsing_nesting/grammar.rb', line 9

def tap
  yield(self)
  self
end