Class: Code::Parser::ChainedCall
Instance Method Summary
collapse
#root, #whitespace, #whitespace?
Instance Method Details
#ampersand ⇒ Object
14
15
16
|
# File 'lib/code/parser/chained_call.rb', line 14
def ampersand
str("&")
end
|
18
19
20
|
# File 'lib/code/parser/chained_call.rb', line 18
def colon
str(":")
end
|
10
11
12
|
# File 'lib/code/parser/chained_call.rb', line 10
def dot
str(".")
end
|
26
27
28
|
# File 'lib/code/parser/chained_call.rb', line 26
def operator
dot | (colon << colon) | (ampersand << dot)
end
|
#right_statement ⇒ Object
22
23
24
|
# File 'lib/code/parser/chained_call.rb', line 22
def right_statement
ChainedCall
end
|
#statement ⇒ Object
6
7
8
|
# File 'lib/code/parser/chained_call.rb', line 6
def statement
SquareBracket
end
|