class Reek::Context::AttributeContext
A context wrapper for attribute definitions found in a syntax tree.
@quality :reek:Attribute
Attributes
Public Class Methods
Source
# File lib/reek/context/attribute_context.rb, line 14 def initialize(exp, send_expression) @visibility = :public @send_expression = send_expression super(exp) end
Calls superclass method
Public Instance Methods
Source
# File lib/reek/context/attribute_context.rb, line 28 def apply_current_visibility(current_visibility) self.visibility = current_visibility end
Source
# File lib/reek/context/attribute_context.rb, line 20 def full_comment send_expression.full_comment || '' end
Source
# File lib/reek/context/attribute_context.rb, line 24 def instance_method? true end