Sha256: a9c6d82b86e97e48122ec9188eb7f97872aa409afe7711f9b7953a509ed97656
Contents?: true
Size: 217 Bytes
Versions: 2
Compression:
Stored size: 217 Bytes
Contents
class Module def focus *wanteds wanteds.map! { |m| m.to_s } unwanteds = public_instance_methods(false).grep(/test_/) - wanteds unwanteds.each do |unwanted| remove_method unwanted end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
grosser-zentest-4.0.1 | lib/focus.rb |
ZenTest-4.0.0 | lib/focus.rb |