Class: Canon::Rebaseliner::HeredocTarget
- Inherits:
-
Struct
- Object
- Struct
- Canon::Rebaseliner::HeredocTarget
- 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
-
#content_end_offset ⇒ Object
Returns the value of attribute content_end_offset.
-
#content_start_offset ⇒ Object
Returns the value of attribute content_start_offset.
-
#source ⇒ Object
Returns the value of attribute source.
-
#spec_path ⇒ Object
Returns the value of attribute spec_path.
-
#style ⇒ Object
Returns the value of attribute style.
-
#terminator_indent ⇒ Object
Returns the value of attribute terminator_indent.
Instance Attribute Details
#content_end_offset ⇒ Object
Returns the value of attribute 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_offset ⇒ Object
Returns the value of attribute content_start_offset
9 10 11 |
# File 'lib/canon/rebaseliner/heredoc_target.rb', line 9 def content_start_offset @content_start_offset end |
#source ⇒ Object
Returns the value of attribute source
9 10 11 |
# File 'lib/canon/rebaseliner/heredoc_target.rb', line 9 def source @source end |
#spec_path ⇒ Object
Returns the value of attribute spec_path
9 10 11 |
# File 'lib/canon/rebaseliner/heredoc_target.rb', line 9 def spec_path @spec_path end |
#style ⇒ Object
Returns the value of attribute style
9 10 11 |
# File 'lib/canon/rebaseliner/heredoc_target.rb', line 9 def style @style end |
#terminator_indent ⇒ Object
Returns the value of attribute terminator_indent
9 10 11 |
# File 'lib/canon/rebaseliner/heredoc_target.rb', line 9 def terminator_indent @terminator_indent end |