Module: RuboCop::Cop::Prawn::Style::TrailingCommaFix
- Defined in:
- lib/rubocop/cop/prawn/style/trailing_comma_fix.rb
Instance Method Summary collapse
Instance Method Details
#should_have_comma?(style, node) ⇒ Boolean
8 9 10 11 12 13 14 |
# File 'lib/rubocop/cop/prawn/style/trailing_comma_fix.rb', line 8 def should_have_comma?(style, node) if style == :prawn_comma node.loc.begin.line != node.loc.end.line # parens are on different lines else super end end |