Class: Code::Parser::OrOperator

Inherits:
LeftOperation show all
Defined in:
lib/code/parser/or_operator.rb

Instance Method Summary collapse

Methods inherited from LeftOperation

#root, #whitespace, #whitespace?

Instance Method Details

#operatorObject



14
15
16
# File 'lib/code/parser/or_operator.rb', line 14

def operator
  pipe << pipe
end

#pipeObject



10
11
12
# File 'lib/code/parser/or_operator.rb', line 10

def pipe
  str("|")
end

#statementObject



6
7
8
# File 'lib/code/parser/or_operator.rb', line 6

def statement
  AndOperator
end