Parent

Class Index [+]

Quicksearch

Cucumber::WireSupport::Configuration

Attributes

host[R]
port[R]

Public Class Methods

new(wire_file) click to toggle source
    # File lib/cucumber/wire_support/configuration.rb, line 6
 6:       def initialize(wire_file)
 7:         params = YAML.load_file(wire_file)
 8:         @host = params['host']
 9:         @port = params['port']
10:         @timeouts = default_timeouts.merge(params['timeout'] || {})
11:       end

Public Instance Methods

timeout(message = nil) click to toggle source
    # File lib/cucumber/wire_support/configuration.rb, line 13
13:       def timeout(message = nil)
14:         return @timeouts[message.to_s] || 3
15:       end

Private Instance Methods

default_timeouts() click to toggle source
    # File lib/cucumber/wire_support/configuration.rb, line 19
19:       def default_timeouts
20:         {
21:           'invoke' => 120,
22:           'begin_scenario' => 120,
23:           'end_scenario' => 120
24:         }
25:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.