Sha256: 44b2c5e19dda2fb8ca84dbd266bb2fd428b791eb5e6f5c4670236410e230d4df
Contents?: true
Size: 714 Bytes
Versions: 2
Compression:
Stored size: 714 Bytes
Contents
require_relative 'code_context' module Reek module Context # # A context wrapper for attribute definitions found in a syntax tree. # # :reek:Attribute class AttributeContext < CodeContext attr_accessor :visibility def initialize(context, exp, send_expression) @visibility = :public @send_expression = send_expression super context, exp end def full_comment send_expression.full_comment || '' end def instance_method? true end def apply_current_visibility(current_visibility) self.visibility = current_visibility end private attr_reader :send_expression end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
reek-3.11 | lib/reek/context/attribute_context.rb |
reek-3.10.2 | lib/reek/context/attribute_context.rb |