# File lib/cucumber/wire_support/configuration.rb, line 9defself.from_file(wire_file)
settings = YAML.load(ERB.new(File.read(wire_file)).result)
new(settings)
end
new(args)click to toggle source
# File lib/cucumber/wire_support/configuration.rb, line 14definitialize(args)
@host = args['host']
@port = args['port']
@unix = args['unix'] ifRUBY_PLATFORM!~/mingw|mswin/@timeouts = DEFAULT_TIMEOUTS.merge(args['timeout'] || {})
end
Public Instance Methods
timeout(message = nil)click to toggle source
# File lib/cucumber/wire_support/configuration.rb, line 21deftimeout(message = nil)
return@timeouts[message.to_s] ||3end
to_s()click to toggle source
# File lib/cucumber/wire_support/configuration.rb, line 25defto_sreturn@unixif@unix"#{@host}:#{@port}"end