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, #line, #to_hash

Constructor Details

- (Heredoc) initialize(begin_l, body_l, end_l)

Returns a new instance of Heredoc



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

def initialize(begin_l, body_l, end_l)
  @heredoc_body = body_l
  @heredoc_end  = end_l

  super(begin_l)
end

Instance Attribute Details

- (Object) heredoc_body (readonly)



5
6
7
# File 'lib/parser/source/map/heredoc.rb', line 5

def heredoc_body
  @heredoc_body
end

- (Object) heredoc_end (readonly)



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

def heredoc_end
  @heredoc_end
end