Pattern: Use of ::
for defining class method
Issue: -
This rule checks for class methods that are defined using the ::
operator instead of the .
operator.
# bad
class Foo
def self::bar
end
end
# good
class Foo
def self.bar
end
end
Pattern: Use of ::
for defining class method
Issue: -
This rule checks for class methods that are defined using the ::
operator instead of the .
operator.
# bad
class Foo
def self::bar
end
end
# good
class Foo
def self.bar
end
end