Sha256: a92704275fbaa65eddb8fcbee5a0f3e059f70bff40dfc1b2e8bfdfbc799260cb
Contents?: true
Size: 736 Bytes
Versions: 28
Compression:
Stored size: 736 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
28 entries across 26 versions & 2 rubygems