Class: Agent::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/agent/error.rb

Instance Method Summary collapse

Constructor Details

#initialize(message) ⇒ Error

Returns a new instance of Error.



3
4
5
# File 'lib/agent/error.rb', line 3

def initialize(message)
  @message = message
end

Instance Method Details

#message?(message) ⇒ Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/agent/error.rb', line 11

def message?(message)
  @message == message
end

#to_sObject



7
8
9
# File 'lib/agent/error.rb', line 7

def to_s
  @message
end