Exception: Markable::NotAllowedMarker
- Inherits:
-
Exception
- Object
- Exception
- Markable::NotAllowedMarker
- Defined in:
- lib/markable/exceptions.rb
Instance Method Summary collapse
-
#initialize(marker, markable, mark) ⇒ NotAllowedMarker
constructor
A new instance of NotAllowedMarker.
Constructor Details
#initialize(marker, markable, mark) ⇒ NotAllowedMarker
Returns a new instance of NotAllowedMarker.
9 10 11 |
# File 'lib/markable/exceptions.rb', line 9 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 |