Exception: Expect::Timeout
Instance Attribute Summary collapse
-
#chain ⇒ Object
readonly
Returns the value of attribute chain.
-
#pattern ⇒ Object
readonly
Returns the value of attribute pattern.
Instance Method Summary collapse
-
#initialize(chain, pattern) ⇒ Timeout
constructor
A new instance of Timeout.
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
#chain ⇒ Object (readonly)
Returns the value of attribute chain.
48 49 50 |
# File 'lib/carat/expect.rb', line 48 def chain @chain end |
#pattern ⇒ Object (readonly)
Returns the value of attribute pattern.
49 50 51 |
# File 'lib/carat/expect.rb', line 49 def pattern @pattern end |