Class: Object

Inherits:
BasicObject
Defined in:
lib/ruby_smart/namespace/core_ext/ruby/object.rb

Overview

patches the Object class to directly access the namespace

Instance Method Summary collapse

Instance Method Details

#namespace::RubySmart::Namespace::Base

returns a new namespace object which can be used to resolve namespace-related modules

Returns:



9
10
11
# File 'lib/ruby_smart/namespace/core_ext/ruby/object.rb', line 9

def namespace
  ::RubySmart::Namespace::Base.new(self)
end