class Contracts::ContractsNotIncluded
Error issued when user haven't included Contracts
in original class but used Contract
definition in singleton class
Provides useful description for user of the gem and an example of correct usage.
Constants
- DEFAULT_MESSAGE
Attributes
message[R]
to_s[R]
Public Class Methods
new(message = DEFAULT_MESSAGE)
click to toggle source
Calls superclass method
# File lib/contracts/errors.rb, line 69 def initialize(message = DEFAULT_MESSAGE) super @message = message end