Sha256: 6fbebcda7fe2627f70c0764839ba1cb9166ce7e074bf19f70dda4c7e700056a4
Contents?: true
Size: 501 Bytes
Versions: 4
Compression:
Stored size: 501 Bytes
Contents
# encoding: utf-8 require 'singleton' module Synvert # Synvert global configuration. class Configuration < Hash include Singleton # Set the configuration. # # @param key [String] configuration key. # @param value [Object] configuration value. def set(key, value) self[key] = value end # Get the configuration. # # @param key [String] configuration key. # @return [Object] configuration value. def get(key) self[key] end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
synvert-0.0.17 | lib/synvert/configuration.rb |
synvert-0.0.16 | lib/synvert/configuration.rb |
synvert-0.0.15 | lib/synvert/configuration.rb |
synvert-0.0.14 | lib/synvert/configuration.rb |