Class: Parser::Source::Map::Heredoc

Inherits:
Parser::Source::Map show all
Defined in:
lib/parser/source/map/heredoc.rb

Instance Attribute Summary collapse

Attributes inherited from Parser::Source::Map

#expression, #node

Instance Method Summary collapse

Methods inherited from Parser::Source::Map

#==, #column, #last_column, #last_line, #line, #to_hash

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_bodyObject (readonly)


7
8
9
# File 'lib/parser/source/map/heredoc.rb', line 7

def heredoc_body
  @heredoc_body
end

#heredoc_endObject (readonly)


8
9
10
# File 'lib/parser/source/map/heredoc.rb', line 8

def heredoc_end
  @heredoc_end
end