Class: Code::Parser::OrKeyword

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

Instance Method Summary collapse

Methods inherited from LeftOperation

#right_statement, #root, #whitespace, #whitespace?

Instance Method Details

#and_keywordObject



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

def and_keyword
  str("and")
end

#operatorObject



18
19
20
# File 'lib/code/parser/or_keyword.rb', line 18

def operator
  or_keyword | and_keyword
end

#or_keywordObject



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

def or_keyword
  str("or")
end

#statementObject



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

def statement
  NotKeyword
end