struct Ameba::Rules::PredicateName
- Ameba::Rules::PredicateName
- Ameba::Rule
- Struct
- Value
- Object
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.crInstance 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