Object
Represents the packet of data sent over the wire as JSON data, containing a message and a hash of arguments
# File lib/cucumber/wire_support/wire_packet.rb, line 17 17: def initialize(message, params = nil) 18: @message, @params = message, params 19: end
# File lib/cucumber/wire_support/wire_packet.rb, line 7 7: def parse(raw) 8: attributes = JSON.parse(raw.strip) 9: message = attributes[0] 10: params = attributes[1] 11: new(message, params) 12: end
# File lib/cucumber/wire_support/wire_packet.rb, line 27 27: def handle_with(handler) 28: handler.send("handle_#{@message}", @params) 29: end
# File lib/cucumber/wire_support/wire_packet.rb, line 21 21: def to_json 22: packet = [@message] 23: packet << @params if @params 24: packet.to_json 25: end
Disabled; run with --debug to generate this.
[Validate]
Generated with the Darkfish Rdoc Generator 1.1.6.