class RubbyCop::Cop::Layout::SpaceAfterComma

Checks for comma (,) not followed by some kind of space.

Public Instance Methods

kind(token) click to toggle source
# File lib/rubbycop/cop/layout/space_after_comma.rb, line 15
def kind(token)
  'comma' if token.type == :tCOMMA
end
space_style_before_rcurly() click to toggle source
# File lib/rubbycop/cop/layout/space_after_comma.rb, line 10
def space_style_before_rcurly
  cfg = config.for_cop('Layout/SpaceInsideHashLiteralBraces')
  cfg['EnforcedStyle'] || 'space'
end