Sha256: 33e3b1e74436a1daccb4e6fb413c52f7f6dc9e2336ebfeab62aefd886108782b

Contents?: true

Size: 336 Bytes

Versions: 2

Compression:

Stored size: 336 Bytes

Contents

module FLV
  module Edit
    FILE = ::File.dirname(__FILE__) + '/../../../VERSION.yml'
    
    class Version < Struct.new(:major, :minor, :patch)
      def to_s
        "#{major}.#{minor}.#{patch}"
      end
    end
    
    def self.version
      Version.new(*YAML.load_file(FILE).values_at('major','minor','patch'))
    end
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
marcandre-flvedit-0.6.1 lib/flv/edit/version.rb
flvedit-0.6.1 lib/flv/edit/version.rb