Sha256: 074000e51f78498d2b358070b0625404af6fce85ef46318af8bb8970c43dce2d
Contents?: true
Size: 693 Bytes
Versions: 4
Compression:
Stored size: 693 Bytes
Contents
module Machinist # Raised when make! is called on a class whose blueprints don't support # saving. class BlueprintCantSaveError < RuntimeError attr_reader :blueprint def initialize(blueprint) @blueprint = blueprint end def message "make! is not supported by blueprints for class #{@blueprint.klass.name}" end end # Raised when calling make on a class with no corresponding blueprint # defined. class NoBlueprintError < RuntimeError attr_reader :klass, :name def initialize(klass, name) @klass = klass @name = name end def message "No #{@name} blueprint defined for class #{@klass.name}" end end end
Version data entries
4 entries across 4 versions & 2 rubygems