Class: Reek::Context::RootContext Private

Inherits:
Object
  • Object
show all
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

Constructor Details

#initializeRootContext

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_nameObject

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