Sha256: e15dccd10b0722c74c5522099d7fe483d58186a7d4763b815eab05687f000223

Contents?: true

Size: 432 Bytes

Versions: 20

Compression:

Stored size: 432 Bytes

Contents

module Museum
  def self.configure(configuration = Museum::Configuration.new)
    if block_given?
      yield configuration
    end
    @@configuration = configuration
  end
  
  def self.configuration
    @@configuration ||= Museum::Configuration.new
  end
  
  class Configuration
    attr_accessor :username, :refresh_interval
    
    def initialize
      self.username = nil
      self.refresh_interval = 3600
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
museum-0.5.8 lib/museum/configuration.rb
museum-0.5.7 lib/museum/configuration.rb
museum-0.5.6 lib/museum/configuration.rb
museum-0.5.4 lib/museum/configuration.rb
museum-0.5.3 lib/museum/configuration.rb
museum-0.5.2 lib/museum/configuration.rb
museum-0.5.1 lib/museum/configuration.rb
museum-0.5.0 lib/museum/configuration.rb
museum-0.3.0 lib/museum/configuration.rb
museum-0.2.2 lib/museum/configuration.rb
museum-0.1.5 lib/museum/configuration.rb
museum-0.1.4 lib/museum/configuration.rb
museum-0.1.3 lib/museum/configuration.rb
museum-0.1.2 lib/museum/configuration.rb
museum-0.1.1 lib/museum/configuration.rb
museum-0.1.0 lib/museum/configuration.rb
museum-0.0.4 lib/museum/configuration.rb
museum-0.0.3 lib/museum/configuration.rb
museum-0.0.2 lib/museum/configuration.rb
museum-0.0.1 lib/museum/configuration.rb