Sha256: 6c3450a2a0fa27eddfd45417eaee18c9db903d1fff1919fc0a2de596ca021546
Contents?: true
Size: 638 Bytes
Versions: 55
Compression:
Stored size: 638 Bytes
Contents
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 = '3.0.3' 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
Version data entries
55 entries across 55 versions & 7 rubygems