summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2008-07-06 18:04:55 +0200
committerChristian Neukirchen <chneukirchen@gmail.com>2008-07-06 18:04:55 +0200
commit531adbc116932b4989a49e9ef2d52522d08ddc54 (patch)
treee70cf7d1bacc7b9b2425eba303102f6f4647549f /lib
parent4578bf348fc3fe7791c41517d4282cfeb1a6828b (diff)
downloadbacon-531adbc116932b4989a49e9ef2d52522d08ddc54.tar.gz
bacon-531adbc116932b4989a49e9ef2d52522d08ddc54.tar.xz
bacon-531adbc116932b4989a49e9ef2d52522d08ddc54.zip
Small reformatting
darcs-hash:20080706160455-4fc50-8954971c10cd130a9e5b582b4188987f9cbebaeb.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/bacon.rb9
1 files changed, 3 insertions, 6 deletions
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