class RuboCop::Cop::Style::SpaceAfterSemicolon
Checks for semicolon (;) not followed by some kind of space.
Public Instance Methods
kind(token)
click to toggle source
# File lib/rubocop/cop/style/space_after_semicolon.rb, line 15 def kind(token) 'semicolon' if token.type == :tSEMI end
space_style_before_rcurly()
click to toggle source
# File lib/rubocop/cop/style/space_after_semicolon.rb, line 10 def space_style_before_rcurly cfg = config.for_cop('Style/SpaceInsideBlockBraces') cfg['EnforcedStyle'] || 'space' end