struct Ameba::Rules::PredicateName

Overview

A rule that disallows tautological predicate names, meaning those that start with the prefix has_ or the prefix is_.

Favour these:

def valid?(x)
end

def picture?(x)
end

Over these:

def is_valid?(x)
end

def has_picture?(x)
end

Defined in:

ameba/rules/predicate_name.cr

Instance Method Summary

Instance methods inherited from struct Ameba::Rule

catch(source : Source) catch, initialize initialize, name name, test(source : Source, node : Crystal::ASTNode)
test(source : Source)
test

Constructor methods inherited from struct Ameba::Rule

new new

Class methods inherited from struct Ameba::Rule

rules rules

Instance Method Detail

def test(source, node : Crystal::Def) #

[View source]
def test(source) #

[View source]