Skip to content

Instantly share code, notes, and snippets.

@bkeepers
Created Nov 26, 2010
Embed
What would you like to do?
DRB cucumber formatter
require 'drb'
module Cucumber
module Formatter
class Drb
SERVER_URI = "druby://localhost:8787"
def initialize(step_mother, io, options)
DRb.start_service
@formatter = DRbObject.new_with_uri(SERVER_URI)
@formatter.start(step_mother, options)
end
def method_missing(method, *args)
@formatter.send(method, *args)
end
def respond_to?(method)
@formatter.respond_to?(method)
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment