Sha256: 7dfc178bcc17aa27638e6a4eb6d524b995405805b67b4fe2ec5f6d77889cabf5

Contents?: true

Size: 417 Bytes

Versions: 4

Compression:

Stored size: 417 Bytes

Contents

class Methods
  class << self
    # get version like ubuntu version
    # eg 13.10
    def get_version
      m = Time.now.to_s.match /(\d+)-(\d+)-(\d+)/
      year, month, day = m[1], m[2], m[3]
      year.gsub! '20', ''
      "#{year}#{month}#{day}"
    end

    def change_current_version
      Find.find(Dir.pwd).each do |path|
        path.match Regexp "/version.rb"
        File.read
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ro_commands-0.0.4 lib/methods.rb
ro_commands-0.0.3 lib/methods.rb
ro_commands-0.0.2 lib/methods.rb
ro_commands-0.0.1 lib/methods.rb