lib/flexmock/argument_matchers.rb in flexmock-0.8.11 vs lib/flexmock/argument_matchers.rb in flexmock-0.9.0

- old
+ new

@@ -1,9 +1,9 @@ #!/usr/bin/env ruby #--- -# Copyright 2003, 2004, 2005, 2006, 2007 by Jim Weirich (jim@weirichhouse.org). +# Copyright 2003-2011 by Jim Weirich (jim@weirichhouse.org). # All rights reserved. # # Permission is granted for use, copying, modification, distribution, # and distribution of modified versions of this work as long as the # above copyright notice is included. @@ -50,11 +50,11 @@ end def inspect "on{...}" end end - + #################################################################### # Match only things where the block evaluates to true. class HashMatcher def initialize(hash) @hash = hash @@ -64,11 +64,11 @@ end def inspect "hsh(#{@hash.inspect})" end end - + #################################################################### # Match only things where the block evaluates to true. class DuckMatcher def initialize(methods) @methods = methods @@ -78,8 +78,8 @@ end def inspect "ducktype(#{@methods.map{|m| m.inspect}.join(',')})" end end - - + + end