Module: RSpecJavascriptMatchers::Version

Defined in:
lib/version.rb

Class Method Summary collapse

Class Method Details

.majorInteger

Returns:

  • (Integer)


6
7
8
# File 'lib/version.rb', line 6

def major
  0
end

.minorInteger

Returns:

  • (Integer)


11
12
13
# File 'lib/version.rb', line 11

def minor
  0
end

.patchInteger

Returns:

  • (Integer)


16
17
18
# File 'lib/version.rb', line 16

def patch
  1
end

.to_aHash

Returns:

  • (Hash)


30
31
32
# File 'lib/version.rb', line 30

def to_a
  [major, minor, patch].compact
end

.to_hHash

Returns:

  • (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_sString

Returns:

  • (String)


35
36
37
# File 'lib/version.rb', line 35

def to_s
  to_a.join('.')
end