Module: RSpecJavascriptMatchers::Version
- Defined in:
- lib/version.rb
Class Method Summary collapse
Class Method Details
.major ⇒ Integer
6 7 8 |
# File 'lib/version.rb', line 6 def major 0 end |
.minor ⇒ Integer
11 12 13 |
# File 'lib/version.rb', line 11 def minor 0 end |
.patch ⇒ Integer
16 17 18 |
# File 'lib/version.rb', line 16 def patch 1 end |
.to_a ⇒ Hash
30 31 32 |
# File 'lib/version.rb', line 30 def to_a [major, minor, patch].compact end |
.to_h ⇒ Hash
21 22 23 24 25 26 27 |
# File 'lib/version.rb', line 21 def to_h { major: major, minor: minor, patch: patch } end |
.to_s ⇒ String
35 36 37 |
# File 'lib/version.rb', line 35 def to_s to_a.join('.') end |