Exception: Locky::Error

Inherits:
StandardError
  • Object
show all
Defined in:
lib/locky.rb

Instance Method Summary collapse

Constructor Details

#initialize(locker) ⇒ Error

Returns a new instance of Error.



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

def initialize(locker)
  @locker = locker
end

Instance Method Details

#messageObject



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

def message
  "#{@locker.name} already locked by #{@locker.locked_by}"
end