Sha256: d315c9fc3c4272f10607df8c6b0629e0c99901c800590251301dcce15aaafdc1

Contents?: true

Size: 446 Bytes

Versions: 1

Compression:

Stored size: 446 Bytes

Contents

require 'yaml'

module AE
  DIRECTORY = File.dirname(__FILE__) + '/ae'

  PROFILE = YAML.load(File.new(DIRECTORY + '/meta/profile')) rescue {}
  PACKAGE = YAML.load(File.new(DIRECTORY + '/meta/package')) rescue {}

  VERSION = PACKAGE['version']

  #
  def self.const_missing(name)
    key = name.to_s.downcase
    PACAKGE[key] || PROFILE[key] || super(name)
  end
end

require 'ae/assert'
require 'ae/expect'

# Copyright (c) 2008 Thomas Sawyer

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ae-1.4.0 lib/ae.rb