Exception: Expect::Timeout

Inherits:
Exception
  • Object
show all
Defined in:
lib/carat/expect.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(chain, pattern) ⇒ Timeout

Returns a new instance of Timeout.



51
52
53
54
55
56
# File 'lib/carat/expect.rb', line 51

def initialize(chain, pattern)
  @chain = chain
  @pattern = pattern
  
  super("Timed out waiting for #{pattern.inspect} in chain #{chain.inspect}")
end

Instance Attribute Details

#chainObject (readonly)

Returns the value of attribute chain.



48
49
50
# File 'lib/carat/expect.rb', line 48

def chain
  @chain
end

#patternObject (readonly)

Returns the value of attribute pattern.



49
50
51
# File 'lib/carat/expect.rb', line 49

def pattern
  @pattern
end