Sha256: 79a8801f6bb34ee00656bccf6e3c3dda89215dd74348b462a7d40df9babbb52c

Contents?: true

Size: 532 Bytes

Versions: 1

Compression:

Stored size: 532 Bytes

Contents

# Project information.
#--
# Copyright 2007 Suraj N. Kurapati
# See the file named LICENSE for details.

module Rumai
  NFO = {
    :name    => 'Rumai',
    :version => '1.0.0',
    :release => '2008-01-26',
    :website => 'http://rumai.rubyforge.org',
    :home    => File.expand_path(File.join(File.dirname(__FILE__), '..', '..'))
  }

  class << NFO
    # Returns the name and version.
    def to_s
      self[:name] + ' ' + self[:version]
    end

    # throw an exception instead of returning nil
    alias [] fetch
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rumai-1.0.0 lib/rumai/nfo.rb