Class: Reek::Context::RootContext Private
- Inherits:
-
Object
- Object
- Reek::Context::RootContext
- Defined in:
- lib/reek/context/root_context.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
A context wrapper representing the root of an abstract syntax tree.
Instance Method Summary collapse
- #config_for(_) ⇒ Object private
- #count_statements(_num) ⇒ Object private
- #full_name ⇒ Object private
-
#initialize ⇒ RootContext
constructor
private
A new instance of RootContext.
- #method_missing(_method, *_args) ⇒ Object private
Constructor Details
#initialize ⇒ RootContext
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of RootContext.
9 10 11 |
# File 'lib/reek/context/root_context.rb', line 9 def initialize @name = '' end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(_method, *_args) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'lib/reek/context/root_context.rb', line 13 def method_missing(_method, *_args) nil end |
Instance Method Details
#config_for(_) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 |
# File 'lib/reek/context/root_context.rb', line 17 def config_for(_) {} end |
#count_statements(_num) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21 22 23 |
# File 'lib/reek/context/root_context.rb', line 21 def count_statements(_num) 0 end |
#full_name ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
25 26 27 |
# File 'lib/reek/context/root_context.rb', line 25 def full_name '' end |