Sha256: fa935448f74e5a0409528dc93dc1d08f73cb849b07daa93a3d6749a0e04f318d
Contents?: true
Size: 932 Bytes
Versions: 8
Compression:
Stored size: 932 Bytes
Contents
module Markable class WrongMarkableType < Exception def initialize(markable_name) super "Wrong markable type: ['#{Markable.markables.join("', '")}'] expected, '#{markable_name}' provided." end end class NotAllowedMarker < Exception def initialize(marker, markable, mark) super "Marker '#{marker.class.name}' is not allowed to mark '#{markable.class.name}' with mark '#{mark}'. Allowed markers: '#{markable.class.__markable_marks[mark][:allowed_markers].join("', '")}'" end end class WrongMarkerType < Exception def initialize(marker_name) super "Wrong marker type: ['#{Markable.markers.join("', '")}'] expected, '#{marker_name}' provided." end end class WrongMark < Exception def initialize(marker, markable, mark) super "Wrong mark '#{mark}' for '#{markable.class.name}'. Available marks: '#{markable.class.__markable_marks.keys.join("', '")}'" end end end
Version data entries
8 entries across 8 versions & 1 rubygems