Class: Code::Parser::Equality
Instance Method Summary
collapse
#root, #whitespace, #whitespace?
Instance Method Details
10
11
12
|
# File 'lib/code/parser/equality.rb', line 10
def equal
str("=")
end
|
#exclamation_mark ⇒ Object
22
23
24
|
# File 'lib/code/parser/equality.rb', line 22
def exclamation_mark
str("!")
end
|
14
15
16
|
# File 'lib/code/parser/equality.rb', line 14
def greater
str(">")
end
|
18
19
20
|
# File 'lib/code/parser/equality.rb', line 18
def lesser
str("<")
end
|
34
35
36
37
38
39
|
# File 'lib/code/parser/equality.rb', line 34
def operator
(exclamation_mark << equal << equal) | (equal << equal << equal) |
(equal << equal) | (lesser << equal << greater) |
(exclamation_mark << equal) | (equal << tilde) | (tilde << equal) |
(exclamation_mark << tilde)
end
|
#right_statement ⇒ Object
30
31
32
|
# File 'lib/code/parser/equality.rb', line 30
def right_statement
Greater
end
|
#statement ⇒ Object
6
7
8
|
# File 'lib/code/parser/equality.rb', line 6
def statement
Greater
end
|
26
27
28
|
# File 'lib/code/parser/equality.rb', line 26
def tilde
str("~")
end
|