Class: Rsec::Binary

Inherits:
Struct
  • Object
show all
Includes:
Parser
Defined in:
lib/rsec/parser.rb,
lib/rsec/parser.rb

Overview

parsers with 2 params base

Direct Known Subclasses

Fail, Join, JoinEven, JoinOdd, LookAhead, Map, NegativeLookAhead, PDouble, PInt

Instance Attribute Summary collapse

Attributes included from Parser

#name

Method Summary

Methods included from Parser

#&, #*, #<<, #>>, #^, #cached, #eof, #fail, #inspect, #join, #map, #maybe, #parse, #parse!, #star, #|

Instance Attribute Details

#leftObject

Returns the value of attribute left

Returns:

  • (Object)

    the current value of left



47
48
49
# File 'lib/rsec/parser.rb', line 47

def left
  @left
end

#rightObject

Returns the value of attribute right

Returns:

  • (Object)

    the current value of right



47
48
49
# File 'lib/rsec/parser.rb', line 47

def right
  @right
end