Sha256: 3504d52208e735d67dd7e4710cf2f41d18cf295a84a9b5398fcef1df70ac0afe

Contents?: true

Size: 343 Bytes

Versions: 1

Compression:

Stored size: 343 Bytes

Contents

module VCR
  extend self

  def version
    @version ||= begin
      string = '1.7.2'

      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

1 entries across 1 versions & 1 rubygems

Version Path
vcr-1.7.2 lib/vcr/version.rb