lib/facet/enumerable/per.rb in facets-0.6.3 vs lib/facet/enumerable/per.rb in facets-0.7.0
- old
+ new
@@ -1,18 +1,5 @@
require 'facet/enumerable/every'
module Enumerable
# Alias for #every.
alias_method( :per, :every )
-
- # Very nice, concise alias shorthand for #every.
- #
- # require 'facet/enumerable/every'
- #
- # a = [1,2,3]
- # b = [4,5]
- #
- # p a.% + 3 => [4,5,6]
- # p a.% + b => [5,7]
- # p a.%.+(b,2) => [[5,7],[3,4,5]]
- #
- alias_method( :%, :every )
end