Sha256: 1368e9e7e820c81500b532c21b14374949c04e81b7c798e94e39d9c54b0e7ab9
Contents?: true
Size: 521 Bytes
Versions: 9
Compression:
Stored size: 521 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).tap do |subject| builder = Provider::Builder.new(subject) yield(builder) end end end
Version data entries
9 entries across 9 versions & 1 rubygems