Exception: Markable::NotAllowedMarker

Inherits:
Exception
  • Object
show all
Defined in:
lib/markable/exceptions.rb

Instance Method Summary collapse

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