Sha256: 8fcda586061df0e2cf7f22f614e3e58f93e5f469a5a5e6ccc4120b9aad38e424

Contents?: true

Size: 502 Bytes

Versions: 8

Compression:

Stored size: 502 Bytes

Contents

require 'date'

# Require all the libraries!
require_files = %w(
  configuration
  episode_formatter
  location
  locator
  tvdb
  version
  error/no_files_error
).each do |require_file|
  require_relative "where_to/#{require_file}"
end

module WhereTo
  class << self
    attr_accessor :configuration
  end

  def self.configuration
    @configuration ||= Configuration.new
  end

  def self.reset
    @configuration = Configuration.new
  end

  def self.configure
    yield configuration
  end

end 

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
where_to-1.1.0 lib/where_to.rb
where_to-1.0.7 lib/where_to.rb
where_to-1.0.6 lib/where_to.rb
where_to-1.0.5 lib/where_to.rb
where_to-1.0.4 lib/where_to.rb
where_to-1.0.3 lib/where_to.rb
where_to-1.0.2 lib/where_to.rb
where_to-1.0.1 lib/where_to.rb