Sha256: 9ace75f513862ed3839f97ca0fb0537821b3d08c326cb6a7b2aa4e2d8d8f5623

Contents?: true

Size: 342 Bytes

Versions: 3

Compression:

Stored size: 342 Bytes

Contents

module Pesapal

  # Returns our config hash, or if empty, returns an empty hash
  def config
    @@config ||= {}
  end

  # Sets our config class variable, which we expect to be a hash
  def config=(hash)
    @@config = hash
  end

  # Allows us to use instance methods on a Module e.g. Pesapal.config
  module_function :config, :config=
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pesapal-1.3.0 lib/pesapal/configuration.rb
pesapal-1.2.2 lib/pesapal/configuration.rb
pesapal-1.2.1 lib/pesapal/configuration.rb