Class: Twostroke::AST::True

Inherits:
Base
  • Object
show all
Defined in:
lib/twostroke/ast/true.rb

Instance Attribute Summary

Attributes inherited from Base

#line

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Twostroke::AST::Base

Instance Method Details

#collapseObject



3
4
5
# File 'lib/twostroke/ast/true.rb', line 3

def collapse
  self
end

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

Yields:

  • (_self)

Yield Parameters:



7
8
9
# File 'lib/twostroke/ast/true.rb', line 7

def walk(&bk)
  yield self
end