Class: Parser::Source::Map::Definition
Instance Attribute Summary collapse
#expression, #node
Instance Method Summary
collapse
#==, #column, #initialize_copy, #last_column, #last_line, #line, #to_hash, #with_expression
Constructor Details
#initialize(keyword_l, operator_l, name_l, end_l) ⇒ Definition
Returns a new instance of Definition.
12
13
14
15
16
17
18
19
|
# File 'lib/parser/source/map/definition.rb', line 12
def initialize(keyword_l, operator_l, name_l, end_l)
@keyword = keyword_l
@operator = operator_l
@name = name_l
@end = end_l
super(@keyword.join(@end))
end
|
Instance Attribute Details
#end ⇒ Object
10
11
12
|
# File 'lib/parser/source/map/definition.rb', line 10
def end
@end
end
|
#keyword ⇒ Object
7
8
9
|
# File 'lib/parser/source/map/definition.rb', line 7
def keyword
@keyword
end
|
#name ⇒ Object
9
10
11
|
# File 'lib/parser/source/map/definition.rb', line 9
def name
@name
end
|
#operator ⇒ Object
8
9
10
|
# File 'lib/parser/source/map/definition.rb', line 8
def operator
@operator
end
|