Sha256: 4c8aef7cea86d787592e32a5d0e7ee0f28d90aa7fe6fd80b4e27cad10d214e05
Contents?: true
Size: 528 Bytes
Versions: 1
Compression:
Stored size: 528 Bytes
Contents
# frozen_string_literal: true require 'dry-configurable' require_relative "pears/version" require_relative "pears/errors" require_relative "pears/provider" require_relative "pears/subject" module Pears extend Dry::Configurable setting :redis_host, default: :localhost def self.subjects @subjects ||= [] end # This is the main way of locating a subject. def self.subject(name) Subject.new(name: name).tap do |subject| builder = Providers::Builder.new(subject) yield(builder) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pears-0.0.3 | lib/pears.rb |