Class: MethodLog::Scope::Root

Inherits:
MethodLog::Scope show all
Defined in:
lib/method_log/scope.rb

Instance Attribute Summary

Attributes inherited from MethodLog::Scope

#parent

Instance Method Summary collapse

Methods inherited from MethodLog::Scope

#define, #for, #lookup, #method_identifier, #singleton

Constructor Details

#initializeRoot

Returns a new instance of Root.



14
15
16
# File 'lib/method_log/scope.rb', line 14

def initialize
  super('root', parent = Scope::Null.new)
end

Instance Method Details

#namesObject



18
19
20
# File 'lib/method_log/scope.rb', line 18

def names
  []
end

#rootObject



22
23
24
# File 'lib/method_log/scope.rb', line 22

def root
  self
end