Class: Peruby::Lexer::Heredoc

Inherits:
Struct
  • Object
show all
Defined in:
lib/peruby/lexer/heredoc.rb

Overview

Mutable payload filled when the lexer reaches the line after a heredoc declaration.

Instance Attribute Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



6
7
8
# File 'lib/peruby/lexer/heredoc.rb', line 6

def body
  @body
end

#indentObject

Returns the value of attribute indent

Returns:

  • (Object)

    the current value of indent



6
7
8
# File 'lib/peruby/lexer/heredoc.rb', line 6

def indent
  @indent
end

#interpolateObject

Returns the value of attribute interpolate

Returns:

  • (Object)

    the current value of interpolate



6
7
8
# File 'lib/peruby/lexer/heredoc.rb', line 6

def interpolate
  @interpolate
end

#terminatorObject

Returns the value of attribute terminator

Returns:

  • (Object)

    the current value of terminator



6
7
8
# File 'lib/peruby/lexer/heredoc.rb', line 6

def terminator
  @terminator
end