Sha256: 72c9d081a350b9e08b3c64e8d158e4cd7a5a19eae0824151f1a46e4095afd9ca
Contents?: true
Size: 613 Bytes
Versions: 3
Compression:
Stored size: 613 Bytes
Contents
class MyTemp < MetaModule2.new :getter, :file used do |at| at.def_temp_file getter, file end module Methods def def_temp_file getter, file let(getter) { file } after(:each) { File.delete file if File.exist? file } end end end __END__ # def initialize getter, file # @getter, @file = getter, file # end # def extended target # target.def_temp_file @getter, @file # end # def temp_file getter, file # let(getter) { file } # after(:each) { File.delete file if File.exist? file } # end # def self.extended target # target.instance_eval do # end # end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
real_zip-0.0.8 | spec/support/my_temp.rb |
fake_zip-0.0.2 | spec/support/my_temp.rb |
fake_zip-0.0.1 | spec/support/my_temp.rb |