lib/pears.rb in pears-0.1.2 vs lib/pears.rb in pears-0.1.3

- old
+ new

@@ -14,11 +14,12 @@ @subjects ||= [] end # This is the main way of locating a subject. def self.subject(name) + subjects Subject.new(name).tap do |subject| builder = Provider::Builder.new(subject) - yield(builder) + @subjects << yield(builder) end end end