Sha256: 41e75527a3f55d7944c1b56bd9a886c2083e64cd4a83f903eb63aafad2f8f6f4
Contents?: true
Size: 737 Bytes
Versions: 3
Compression:
Stored size: 737 Bytes
Contents
# frozen_string_literal: true require_relative 'code_context' module Reek module Context # # A context wrapper for attribute definitions found in a syntax tree. # # @quality :reek:Attribute class AttributeContext < CodeContext attr_accessor :visibility def initialize(exp, send_expression) @visibility = :public @send_expression = send_expression super(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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
reek-6.4.0 | lib/reek/context/attribute_context.rb |
reek-6.3.0 | lib/reek/context/attribute_context.rb |
reek-6.2.0 | lib/reek/context/attribute_context.rb |