Sha256: ddf32d924af27e921158b01da607d4083b25864dcf13e1b18b922f2b6a82948b

Contents?: true

Size: 271 Bytes

Versions: 14

Compression:

Stored size: 271 Bytes

Contents

require 'singleton'

module Playmo
  class Options
  	include Singleton
    attr_accessor :options_hash

    def set(key, value)
      @options_hash ||= {}
      @options_hash[key.to_sym] = value
    end

    def get(key)
      @options_hash[key.to_sym]
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
playmo-0.1.6 lib/playmo/options.rb
playmo-0.1.5 lib/playmo/options.rb
playmo-0.1.4 lib/playmo/options.rb
playmo-0.1.3 lib/playmo/options.rb
playmo-0.1.2 lib/playmo/options.rb
playmo-0.1.1 lib/playmo/options.rb
playmo-0.1.0 lib/playmo/options.rb
playmo-0.0.18 lib/playmo/options.rb
playmo-0.0.17 lib/playmo/options.rb
playmo-0.0.14 lib/playmo/options.rb
playmo-0.0.13 lib/playmo/options.rb
playmo-0.0.12 lib/playmo/options.rb
playmo-0.0.11 lib/playmo/options.rb
playmo-0.0.10 lib/playmo/options.rb