Class: Parser::Source::Map::Heredoc
- Inherits:
-
Parser::Source::Map
- Object
- Parser::Source::Map
- Parser::Source::Map::Heredoc
- Defined in:
- lib/parser/source/map/heredoc.rb
Instance Attribute Summary collapse
- #heredoc_body ⇒ Object readonly
- #heredoc_end ⇒ Object readonly
Attributes inherited from Parser::Source::Map
Instance Method Summary collapse
-
#initialize(begin_l, body_l, end_l) ⇒ Heredoc
constructor
A new instance of Heredoc.
Methods inherited from Parser::Source::Map
#==, #column, #initialize_copy, #last_column, #last_line, #line, #to_hash, #with_expression
Constructor Details
#initialize(begin_l, body_l, end_l) ⇒ Heredoc
Returns a new instance of Heredoc.
10 11 12 13 14 15 |
# File 'lib/parser/source/map/heredoc.rb', line 10 def initialize(begin_l, body_l, end_l) @heredoc_body = body_l @heredoc_end = end_l super(begin_l) end |
Instance Attribute Details
#heredoc_body ⇒ Object (readonly)
7 8 9 |
# File 'lib/parser/source/map/heredoc.rb', line 7 def heredoc_body @heredoc_body end |
#heredoc_end ⇒ Object (readonly)
8 9 10 |
# File 'lib/parser/source/map/heredoc.rb', line 8 def heredoc_end @heredoc_end end |