Method: RuboCop::Cop::RSpec::EmptyLineAfterExample#on_block
- Defined in:
- lib/rubocop/cop/rspec/empty_line_after_example.rb
#on_block(node) ⇒ Object
rubocop:disable InternalAffairs/NumblockHandler
49 50 51 52 53 54 55 56 |
# File 'lib/rubocop/cop/rspec/empty_line_after_example.rb', line 49 def on_block(node) # rubocop:disable InternalAffairs/NumblockHandler return unless example?(node) return if allowed_one_liner?(node) (node) do |method| format(MSG, example: method) end end |