lib/camtasy/client.rb in camtasy-0.0.1 vs lib/camtasy/client.rb in camtasy-0.0.2

- old
+ new

@@ -1,12 +1,12 @@ module Camtasy class Client - def initialize(server = DRbObject.new_with_uri('druby://localhost:8787'), stdout = $stdout) - @server = server + def initialize(uri, stdout = $stdout) + @server = DRbObject.new_with_uri(uri) @stdout = stdout end def run - @stdout.print server.take_photo + @stdout.print @server.take_photo end end end