Class: Reek::Context::SingletonAttributeContext

Inherits:
AttributeContext show all
Defined in:
lib/reek/context/singleton_attribute_context.rb

Overview

A context wrapper for any singleton attribute definition found in a syntax tree.

Instance Attribute Summary

Attributes inherited from AttributeContext

#send_expression, #visibility

Attributes inherited from CodeContext

#children, #exp, #parent, #refs, #statement_counter

Instance Method Summary collapse

Methods inherited from AttributeContext

#apply_current_visibility, #full_comment, #initialize

Methods inherited from CodeContext

#append_child_context, #apply_current_visibility, #config_for, #configuration_via_code_commment, #each, #full_comment, #full_name, #initialize, #local_nodes, #matches?, #number_of_statements, #parent_config_for, #record_call_to, #record_use_of_self, #register_with_parent, #singleton_method?

Constructor Details

This class inherits a constructor from Reek::Context::AttributeContext

Instance Method Details

#instance_method?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/reek/context/singleton_attribute_context.rb', line 12

def instance_method?
  false
end