Class: CKEditor5::Rails::Semver

Inherits:
Object
  • Object
show all
Defined in:
lib/ckeditor5/rails/semver.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#versionObject (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