Class: Jeeves::StubScope
- Inherits:
-
Object
- Object
- Jeeves::StubScope
- Defined in:
- lib/jeeves/stub_scope.rb
Class Method Summary collapse
Class Method Details
.call(name) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/jeeves/stub_scope.rb', line 3 def self.call(name) Module.new do @name = [name] class << self def const_missing(name) @name << name self end def to_s @name.join("::") end end end end |