Class: Canon::Rebaseliner::HeredocTarget

Inherits:
Struct
  • Object
show all
Defined in:
lib/canon/rebaseliner/heredoc_target.rb

Overview

Data struct describing a heredoc literal located in a spec file: where its body lives in the source (byte range), what style of heredoc delimiter opens it (<<~, <<-, <<), and what indent the terminator sits at (used by <<~ re-indenting).

Instance Attribute Summary collapse

Instance Attribute Details

#content_end_offsetObject

Returns the value of attribute content_end_offset

Returns:

  • (Object)

    the current value of content_end_offset



9
10
11
# File 'lib/canon/rebaseliner/heredoc_target.rb', line 9

def content_end_offset
  @content_end_offset
end

#content_start_offsetObject

Returns the value of attribute content_start_offset

Returns:

  • (Object)

    the current value of content_start_offset



9
10
11
# File 'lib/canon/rebaseliner/heredoc_target.rb', line 9

def content_start_offset
  @content_start_offset
end

#sourceObject

Returns the value of attribute source

Returns:

  • (Object)

    the current value of source



9
10
11
# File 'lib/canon/rebaseliner/heredoc_target.rb', line 9

def source
  @source
end

#spec_pathObject

Returns the value of attribute spec_path

Returns:

  • (Object)

    the current value of spec_path



9
10
11
# File 'lib/canon/rebaseliner/heredoc_target.rb', line 9

def spec_path
  @spec_path
end

#styleObject

Returns the value of attribute style

Returns:

  • (Object)

    the current value of style



9
10
11
# File 'lib/canon/rebaseliner/heredoc_target.rb', line 9

def style
  @style
end

#terminator_indentObject

Returns the value of attribute terminator_indent

Returns:

  • (Object)

    the current value of terminator_indent



9
10
11
# File 'lib/canon/rebaseliner/heredoc_target.rb', line 9

def terminator_indent
  @terminator_indent
end