Sha256: b2d2e51e1937b5710f5fc2466cbbadc70dc93ceb2eb2a8a66cb44f1e0d820c57
Contents?: true
Size: 707 Bytes
Versions: 4
Compression:
Stored size: 707 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
4 entries across 4 versions & 1 rubygems