class HamlLint::RubyExtraction::AdHocChunk

This chunk just adds its code to the ruby, but does not attempt to transfer their correction in any way.

Used for piece of code that just need to be in the generated ruby for reasons specific to the use cases, such as needing a ‘begin` to do add indentation.

Public Class Methods

new(*args, **kwargs) click to toggle source
Calls superclass method
# File lib/haml_lint/ruby_extraction/ad_hoc_chunk.rb, line 10
def initialize(*args, **kwargs)
  super(*args, **kwargs.merge(end_marker_indent: nil))
end

Public Instance Methods

skip_line_indexes_in_source_map() click to toggle source
# File lib/haml_lint/ruby_extraction/ad_hoc_chunk.rb, line 20
def skip_line_indexes_in_source_map
  (0...@ruby_lines.size).to_a
end
transfer_correction(coordinator, all_corrected_ruby_lines, haml_lines) click to toggle source
# File lib/haml_lint/ruby_extraction/ad_hoc_chunk.rb, line 18
def transfer_correction(coordinator, all_corrected_ruby_lines, haml_lines); end
wrap_in_markers() click to toggle source
# File lib/haml_lint/ruby_extraction/ad_hoc_chunk.rb, line 14
def wrap_in_markers
  false
end