Exception: Blueprints::Error

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

Direct Known Subclasses

BlueprintNotFoundError, DemolishError

Instance Method Summary collapse

Constructor Details

#initialize(blueprint) ⇒ Error

Returns a new instance of Error.



3
4
5
# File 'lib/blueprints/errors.rb', line 3

def initialize(blueprint)
  @name = blueprint
end

Instance Method Details

#to_sObject



7
8
9
# File 'lib/blueprints/errors.rb', line 7

def to_s
  "Blueprint '#{@name}' #{message_append}"
end