Exception: Versionary::NotAVersionComplaint
- Inherits:
-
Exception
- Object
- Exception
- Versionary::NotAVersionComplaint
- Defined in:
- lib/versionary/version_number.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(version) ⇒ NotAVersionComplaint
constructor
A new instance of NotAVersionComplaint.
Constructor Details
#initialize(version) ⇒ NotAVersionComplaint
Returns a new instance of NotAVersionComplaint.
68 69 70 |
# File 'lib/versionary/version_number.rb', line 68 def initialize version super "#{version} is not a recognised version number" end |
Class Method Details
.about(version) ⇒ Object
64 65 66 |
# File 'lib/versionary/version_number.rb', line 64 def self.about version self.new version end |