Class: TorqueBox::Kernel Private
- Inherits:
-
Object
- Object
- TorqueBox::Kernel
- Defined in:
- lib/torquebox/kernel.rb
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.
Class Method Summary collapse
-
.[](name) ⇒ Object
private
blocks are not allowed on the method named :[].
- .blocks ⇒ Object private
- .kernel=(kernel) ⇒ Object private
- .lookup(name, &block) ⇒ Object private
Class Method Details
.[](name) ⇒ 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.
blocks are not allowed on the method named :[]
31 32 33 34 |
# File 'lib/torquebox/kernel.rb', line 31 def self.[](name) $stderr.puts "[WARNING] >>> TorqueBox::Kernel is deprecated. Please begin using TorqueBox::ServiceRegistry instead." self.lookup(name) end |
.blocks ⇒ 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.
41 42 43 44 |
# File 'lib/torquebox/kernel.rb', line 41 def self.blocks $stderr.puts "[WARNING] >>> TorqueBox::Kernel is deprecated. Please begin using TorqueBox::ServiceRegistry instead." TorqueBox::ServiceRegistry.blocks end |
.kernel=(kernel) ⇒ 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.
24 25 26 27 28 |
# File 'lib/torquebox/kernel.rb', line 24 def self.kernel=(kernel) $stderr.puts "[WARNING] >>> TorqueBox::Kernel is deprecated. Please begin using TorqueBox::ServiceRegistry instead." # is this even reasonable? TorqueBox::ServiceRegistry.service_registry = kernel end |
.lookup(name, &block) ⇒ 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.
36 37 38 39 |
# File 'lib/torquebox/kernel.rb', line 36 def self.lookup(name, &block) $stderr.puts "[WARNING] >>> TorqueBox::Kernel is deprecated. Please begin using TorqueBox::ServiceRegistry instead." TorqueBox::ServiceRegistry.lookup(name, &block) end |