Sha256: ac6a315c35ca5502cf744dc0379a541fa543c187bb0bd62b32e6065eef414065

Contents?: true

Size: 331 Bytes

Versions: 1

Compression:

Stored size: 331 Bytes

Contents

module JqPlotRails
  class Version

    attr_reader :major, :minor, :tiny

    def initialize(version)
      version = version.split('.')
      @major, @minor, @tiny = [version[0].to_i, version[1].to_i, version[2].to_i]
    end

    def to_s
      "#{@major}.#{@minor}.#{@tiny}"
    end
  end

  VERSION = Version.new('0.0.2')
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
jqplot_rails-0.0.2 lib/jqplot_rails/version.rb