Class: Reek::Context::RefinementContext
- Inherits:
-
ModuleContext
- Object
- CodeContext
- ModuleContext
- Reek::Context::RefinementContext
- Defined in:
- lib/reek/context/refinement_context.rb
Overview
A context wrapper for any refinement blocks found in a syntax tree.
Constant Summary
Constants inherited from ModuleContext
ModuleContext::CONSTANT_SEXP_TYPES
Instance Attribute Summary
Attributes inherited from ModuleContext
Attributes inherited from CodeContext
#children, #exp, #parent, #refs, #statement_counter
Instance Method Summary collapse
Methods inherited from ModuleContext
#append_child_context, #attribute_context_class, #defined_instance_methods, #descriptively_commented?, #initialize, #instance_method_calls, #instance_method_children, #instance_method_names_via_to_call, #method_context_class, #namespace_module?, #node_instance_methods, #singleton_method_children, #track_visibility
Methods inherited from CodeContext
#append_child_context, #apply_current_visibility, #config_for, #configuration_via_code_commment, #each, #full_comment, #initialize, #instance_method?, #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::ModuleContext
Instance Method Details
#full_name ⇒ Object
11 12 13 |
# File 'lib/reek/context/refinement_context.rb', line 11 def full_name exp.call.args.first.name end |