Sha256: 78a4b0ae0318e3f33cac2958ff154b1fa73acfa691c16c49a42a43c2735740b1
Contents?: true
Size: 266 Bytes
Versions: 1
Compression:
Stored size: 266 Bytes
Contents
module Raccoon class Spec [:before, :after].each do |name| define_method name do |value=:each,&block| instance_variable_set("@#{name}", &block) if block_given? instance_variable_get("@#{name}")||Proc.new {} end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
raccoon-0.0.1 | lib/raccoon/spec/spec.rb |