Sha256: 5324a4dd3a1923f3d420683c1111090d6f65550ffc6def73c049732ebfc5b3cc

Contents?: true

Size: 276 Bytes

Versions: 6

Compression:

Stored size: 276 Bytes

Contents

module VCLog

  def self.metadata
    @metadata ||= (
      require 'yaml'
      YAML.load_file(File.dirname(__FILE__) + '/../vclog.yml')
    )
  end

  def self.const_missing(name)
    key = name.to_s.downcase
    metadata.key?(key) ? metadata[key] : super(name)
  end

end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
rubycut-vclog-1.9.5.1 lib/vclog/metadata.rb
rubycut-vclog-1.9.5 lib/vclog/metadata.rb
rubycut-vclog-1.9.4 lib/vclog/metadata.rb
vclog-1.9.2 lib/vclog/metadata.rb
vclog-1.9.1 lib/vclog/metadata.rb
vclog-1.9.0 lib/vclog/metadata.rb