Class: Object

Inherits:
BasicObject
Defined in:
lib/test/zentest_assertions.rb,
lib/test/rails.rb

Overview

:nodoc:

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.path2class(klassname) ⇒ Object



275
276
277
# File 'lib/test/rails.rb', line 275

def self.path2class(klassname)
  klassname.split('::').inject(Object) { |k,n| k.const_get n }
end

Instance Method Details

#path2class(path) ⇒ Object

:nodoc:



129
130
131
# File 'lib/test/zentest_assertions.rb', line 129

def path2class(path) # :nodoc:
  path.split('::').inject(Object) { |k,n| k.const_get n }
end