lib/ae/subjunctive.rb in ae-1.7.4 vs lib/ae/subjunctive.rb in ae-1.8.0

- old
+ new

@@ -1,20 +1,19 @@ require 'ae/assertor' module AE - # = Subjunctive + # Subjunctive # # Mixin for Assertor that provides additional English-eque verbage # such as 'be' and 'an'. This makes it easier to create assertor # methods of subjunctive terms like 'should'. # - # THIS IS AN OPTIONAL LIBRARY. - # + # @note THIS IS AN OPTIONAL LIBRARY. module Subjunctive - # Like #assert, except if an argument if provided and no block, + # Like #assert, except if an argument is provided and no block, # uses #equate? to compare the argument to the receiver. This # allows for statements of the form: # # 5.should.be Numeric # @@ -36,11 +35,11 @@ # 5.assert.is Numeric # alias_method :is , :be alias_method :does, :be - # The indefinite article is like #be, excpet that it compares a lone argument + # The indefinite article is like #be, except that it compares a lone argument # with #case?, rather than #equate? # def a(*args, &block) return self if args.empty? && !block block = args.shift if !block && ::Proc === args.first @@ -61,6 +60,6 @@ class AE::Assertor include ::AE::Subjunctive end -# Copyright (c) 2008,2009 Thomas Sawyer +# Copyright (c) 2008 Thomas Sawyer