Class: CKEditor5::Rails::Semver
- Inherits:
-
Object
- Object
- CKEditor5::Rails::Semver
- Defined in:
- lib/ckeditor5/rails/semver.rb
Instance Attribute Summary collapse
-
#version ⇒ Object
(also: #to_s)
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(version) ⇒ Semver
constructor
A new instance of Semver.
Constructor Details
#initialize(version) ⇒ Semver
Returns a new instance of Semver.
8 9 10 11 |
# File 'lib/ckeditor5/rails/semver.rb', line 8 def initialize(version) @version = version.to_s validate! end |
Instance Attribute Details
#version ⇒ Object (readonly) Also known as: to_s
Returns the value of attribute version.
4 5 6 |
# File 'lib/ckeditor5/rails/semver.rb', line 4 def version @version end |