struct Ameba::Rules::LiteralInInterpolation
- Ameba::Rules::LiteralInInterpolation
- Ameba::Rule
- Struct
- Value
- Object
Overview
A rule that disallows useless string interpolations that contain a literal value instead of a variable or function.
For example:
"Hello, #{:Ary}"
"The are #{4} cats"
Included Modules
Defined in:
ameba/rules/literal_in_interpolation.crInstance Method Summary
Instance methods inherited from module Ameba::AST::Util
literal?(node)
literal?,
string_literal?(node)
string_literal?
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