Sha256: 96ec7f007c8dcad019d48c69b055efc2e9503c81eba0c59a21318715df8fe11f
Contents?: true
Size: 298 Bytes
Versions: 1
Compression:
Stored size: 298 Bytes
Contents
module Bacon module Subject ## # Syntactic sugar for creating an anonymous class in a before block. def subject( base=Object, &block ) block_given? ? before { @subject = Class.new( base, &block ).new } : @subject end end end Bacon::Context.send :include, Bacon::Subject
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
lotion-0.1.0 | spec/helpers/subject.rb |