Exception: Ferrum::NodeIsMovingError
- Defined in:
- lib/ferrum.rb
Instance Method Summary collapse
-
#initialize(node, prev, current) ⇒ NodeIsMovingError
constructor
A new instance of NodeIsMovingError.
- #message ⇒ Object
Constructor Details
#initialize(node, prev, current) ⇒ NodeIsMovingError
Returns a new instance of NodeIsMovingError.
61 62 63 64 |
# File 'lib/ferrum.rb', line 61 def initialize(node, prev, current) @node, @prev, @current = node, prev, current super() end |
Instance Method Details
#message ⇒ Object
66 67 68 69 70 |
# File 'lib/ferrum.rb', line 66 def "#{@node.inspect} that you're trying to click is moving, hence " \ "we cannot. Previosuly it was at #{@prev.inspect} but now at " \ "#{@current.inspect}." end |