lib/pears.rb in pears-0.0.2 vs lib/pears.rb in pears-0.0.3
- old
+ new
@@ -12,10 +12,9 @@
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)