Class: Prickle::Exceptions::Message::TextNotContainedInPopup

Inherits:
Object
  • Object
show all
Includes:
Prickle::Exceptions::Message
Defined in:
lib/prickle/exceptions/messages.rb

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ TextNotContainedInPopup

Returns a new instance of TextNotContainedInPopup.



43
44
45
# File 'lib/prickle/exceptions/messages.rb', line 43

def initialize message
  @message = message
end

Instance Method Details

#to_sObject



47
48
49
# File 'lib/prickle/exceptions/messages.rb', line 47

def to_s
  "Text #{highlight(@message)} is not contained in the popup."
end