Exception: Ferrum::NodeIsMovingError

Inherits:
Error
  • Object
show all
Defined in:
lib/ferrum.rb

Instance Method Summary collapse

Constructor Details

#initialize(node, prev, current) ⇒ NodeIsMovingError

Returns a new instance of NodeIsMovingError.



52
53
54
55
# File 'lib/ferrum.rb', line 52

def initialize(node, prev, current)
  @node, @prev, @current = node, prev, current
  super(message)
end

Instance Method Details

#messageObject



57
58
59
60
61
# File 'lib/ferrum.rb', line 57

def message
  "#{@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