Class: Code::Parser::OrKeyword
Instance Method Summary
collapse
#right_statement, #root, #whitespace, #whitespace?
Instance Method Details
#and_keyword ⇒ Object
18
19
20
|
# File 'lib/code/parser/or_keyword.rb', line 18
def and_keyword
str("and") << separator.present
end
|
22
23
24
|
# File 'lib/code/parser/or_keyword.rb', line 22
def operator
or_keyword | and_keyword
end
|
#or_keyword ⇒ Object
14
15
16
|
# File 'lib/code/parser/or_keyword.rb', line 14
def or_keyword
str("or") << separator.present
end
|
#separator ⇒ Object
10
11
12
|
# File 'lib/code/parser/or_keyword.rb', line 10
def separator
Name.new.separator
end
|
#statement ⇒ Object
6
7
8
|
# File 'lib/code/parser/or_keyword.rb', line 6
def statement
NotKeyword
end
|