lib/pears.rb in pears-0.0.5 vs lib/pears.rb in pears-0.0.6
- old
+ new
@@ -14,10 +14,10 @@
@subjects ||= []
end
# This is the main way of locating a subject.
def self.subject(name)
- Subject.new(name: name).tap do |subject|
+ Subject.new(name).tap do |subject|
builder = Provider::Builder.new(subject)
yield(builder)
end
end
end