Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

35 lines (28 sloc) 0.638 kB
module VCR
extend self
# @return [String] the current VCR version.
# @note This string also has singleton methods:
#
# * `major` [Integer] The major version.
# * `minor` [Integer] The minor version.
# * `patch` [Integer] The patch version.
# * `parts` [Array<Integer>] List of the version parts.
def version
@version ||= begin
string = '2.2.5'
def string.parts
split('.').map { |p| p.to_i }
end
def string.major
parts[0]
end
def string.minor
parts[1]
end
def string.patch
parts[2]
end
string
end
end
end
Jump to Line
Something went wrong with that request. Please try again.