Class: RuboCop::Cop::Yoshiki::Haml::SiblingBlankLines

Inherits:
Base
  • Object
show all
Includes:
RangeHelp
Defined in:
lib/rubocop/cop/yoshiki/haml/sibling_blank_lines.rb

Overview

Blank line between multi-line layout siblings; single-line siblings stay packed.

Constant Summary collapse

MSG_MISSING =
SiblingBlankSource::MSG_MISSING
MSG_EXTRA =
SiblingBlankSource::MSG_EXTRA

Instance Method Summary collapse

Instance Method Details

#on_new_investigationObject



127
128
129
# File 'lib/rubocop/cop/yoshiki/haml/sibling_blank_lines.rb', line 127

def on_new_investigation
  inspect_haml
end

#on_other_fileObject



131
132
133
# File 'lib/rubocop/cop/yoshiki/haml/sibling_blank_lines.rb', line 131

def on_other_file
  inspect_haml
end

#rewrite_source(source) ⇒ Object



135
136
137
# File 'lib/rubocop/cop/yoshiki/haml/sibling_blank_lines.rb', line 135

def rewrite_source source
  SiblingBlankSource.new.rewrite(source)
end