Exception: AyeCommander::Error

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/aye_commander/errors.rb

Overview

Core AyeCommander Error

Instance Method Summary collapse

Constructor Details

#initialize(info = nil) ⇒ Error

Returns a new instance of Error.



4
5
6
# File 'lib/aye_commander/errors.rb', line 4

def initialize(info = nil)
  @info = info
end

Instance Method Details

#inspectObject



8
9
10
# File 'lib/aye_commander/errors.rb', line 8

def inspect
  "#<#{self.class}: #{self}>"
end

#to_sObject



12
13
14
# File 'lib/aye_commander/errors.rb', line 12

def to_s
  message
end