Class: Parser::Source::Map::For
- Inherits:
-
Parser::Source::Map
- Object
- Parser::Source::Map
- Parser::Source::Map::For
- Defined in:
- lib/parser/source/map/for.rb
Instance Attribute Summary collapse
-
#begin ⇒ Object
readonly
Returns the value of attribute begin.
-
#end ⇒ Object
readonly
Returns the value of attribute end.
-
#in ⇒ Object
readonly
Returns the value of attribute in.
-
#keyword ⇒ Object
readonly
Returns the value of attribute keyword.
Attributes inherited from Parser::Source::Map
Instance Method Summary collapse
-
#initialize(keyword_l, in_l, begin_l, end_l, expression_l) ⇒ For
constructor
A new instance of For.
Methods inherited from Parser::Source::Map
#line, #to_hash, #update_expression, #with, #with_expression
Constructor Details
#initialize(keyword_l, in_l, begin_l, end_l, expression_l) ⇒ For
Returns a new instance of For.
8 9 10 11 12 13 |
# File 'lib/parser/source/map/for.rb', line 8 def initialize(keyword_l, in_l, begin_l, end_l, expression_l) @keyword, @in = keyword_l, in_l @begin, @end = begin_l, end_l super(expression_l) end |
Instance Attribute Details
#begin ⇒ Object (readonly)
Returns the value of attribute begin.
6 7 8 |
# File 'lib/parser/source/map/for.rb', line 6 def begin @begin end |
#end ⇒ Object (readonly)
Returns the value of attribute end.
6 7 8 |
# File 'lib/parser/source/map/for.rb', line 6 def end @end end |
#in ⇒ Object (readonly)
Returns the value of attribute in.
5 6 7 |
# File 'lib/parser/source/map/for.rb', line 5 def in @in end |
#keyword ⇒ Object (readonly)
Returns the value of attribute keyword.
5 6 7 |
# File 'lib/parser/source/map/for.rb', line 5 def keyword @keyword end |