Class: Reek::Context::RootContext
- Inherits:
-
CodeContext
- Object
- CodeContext
- Reek::Context::RootContext
- Defined in:
- lib/reek/context/root_context.rb
Overview
A context wrapper representing the root of an abstract syntax tree.
Instance Attribute Summary
Attributes inherited from CodeContext
#children, #exp, #parent, #refs, #statement_counter
Instance Method Summary collapse
- #full_name ⇒ Object
-
#method_context_class ⇒ Object
Return the correct class for child method contexts (representing nodes of type ‘:def`).
- #type ⇒ Object
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::CodeContext
Instance Method Details
#full_name ⇒ Object
16 17 18 |
# File 'lib/reek/context/root_context.rb', line 16 def full_name '' end |
#method_context_class ⇒ Object
Return the correct class for child method contexts (representing nodes of type ‘:def`). For RootContext, this is the class that represents instance methods.
23 24 25 |
# File 'lib/reek/context/root_context.rb', line 23 def method_context_class MethodContext end |
#type ⇒ Object
12 13 14 |
# File 'lib/reek/context/root_context.rb', line 12 def type :root end |