Class: Spoolprint::ReceiverManager::RemoteServer

Inherits:
Object
  • Object
show all
Defined in:
lib/spoolprint/server/receiver_manager.rb

Instance Method Summary collapse

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