Exception: Guise::DuplicateDefinition

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

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ DuplicateDefinition

Returns a new instance of DuplicateDefinition.



13
14
15
# File 'lib/guise/errors.rb', line 13

def initialize(name)
  @name = name
end

Instance Method Details

#messageObject



17
18
19
# File 'lib/guise/errors.rb', line 17

def message
  "guise definition for #{@name.inspect} already exists"
end