Class: Spoolprint::ReceiverManager::RemoteServer
- Inherits:
-
Object
- Object
- Spoolprint::ReceiverManager::RemoteServer
- Defined in:
- lib/spoolprint/server/receiver_manager.rb
Instance Method Summary collapse
-
#initialize(meth) ⇒ RemoteServer
constructor
A new instance of RemoteServer.
- #use(length) ⇒ Object
Constructor Details
#initialize(meth) ⇒ RemoteServer
Returns a new instance of RemoteServer.
6 7 8 |
# File 'lib/spoolprint/server/receiver_manager.rb', line 6 def initialize(meth) @meth = meth end |
Instance Method Details
#use(length) ⇒ Object
10 11 12 |
# File 'lib/spoolprint/server/receiver_manager.rb', line 10 def use(length) return @meth.call(length) end |