Parent

Included Modules

Files

Class/Module Index [+]

Quicksearch

RuboCop::Cop::Style::EmptyLinesAroundBody

This cops checks redundant empty lines around the bodies of classes, modules & methods.

@example

class Test

   def something
     ...
   end

end

def something(arg)

  ...
end

Constants

MSG_BEG
MSG_END

Public Instance Methods

autocorrect(range) click to toggle source
# File lib/rubocop/cop/style/empty_lines_around_body.rb, line 41
def autocorrect(range)
  @corrections << ->(corrector) { corrector.remove(range) }
end
on_class(node) click to toggle source
# File lib/rubocop/cop/style/empty_lines_around_body.rb, line 29
def on_class(node)
  check(node)
end
on_module(node) click to toggle source
# File lib/rubocop/cop/style/empty_lines_around_body.rb, line 33
def on_module(node)
  check(node)
end
on_sclass(node) click to toggle source
# File lib/rubocop/cop/style/empty_lines_around_body.rb, line 37
def on_sclass(node)
  check(node)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.