From 531adbc116932b4989a49e9ef2d52522d08ddc54 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Sun, 6 Jul 2008 18:04:55 +0200 Subject: Small reformatting darcs-hash:20080706160455-4fc50-8954971c10cd130a9e5b582b4188987f9cbebaeb.gz --- lib/bacon.rb | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'lib') diff --git a/lib/bacon.rb b/lib/bacon.rb index 9f83fb6..68ba0bb 100644 --- a/lib/bacon.rb +++ b/lib/bacon.rb @@ -242,23 +242,20 @@ end class Object - def should(*args, &block) Should.new(self).be(*args, &block) end + def should(*args, &block) Should.new(self).be(*args, &block) end end module Kernel private - def describe(*args, &block) Bacon::Context.new(args.join(' '), &block) end - def shared(name, &block) Bacon::Shared[name] = block end + def shared(name, &block) Bacon::Shared[name] = block end end class Should # Kills ==, ===, =~, eql?, equal?, frozen?, instance_of?, is_a?, # kind_of?, nil?, respond_to?, tainted? - instance_methods.each { |method| - undef_method method if method =~ /\?|^\W+$/ - } + instance_methods.each { |name| undef_method name if name =~ /\?|^\W+$/ } def initialize(object) @object = object -- cgit 1.4.1