lib/reek/smells/attribute.rb
#
# Checks whether the given class declares any attributes.
#
# @return [Array<SmellWarning>]
#
Checks whether the given class declares any attributes.
Checks whether the given class declares any attributes .
def examine_context(ctx)
        attributes_in(ctx).map do |attribute, line|
          SmellWarning.new self,
                           context: ctx.full_name,
                           lines: [line],
                           message:  "declares the attribute #{attribute}",
                           parameters: { ATTRIBUTE_KEY => attribute.to_s }
        end
      end
def examine_context ( ctx ) attributes_in ( ctx ) . map do | attribute , line | SmellWarning . new self , context : ctx . full_name , lines : [ line ] , message : "declares the attribute #{attribute}" , parameters : { ATTRIBUTE_KEY => attribute . to_s } end end
Checks whether the given class declares any attributes.
Checks whether the given class declares any attributes .
None
Array<SmellWarning>
ctx
<not_specific>