lib/facet/array/pos.rb in facets-0.6.3 vs lib/facet/array/pos.rb in facets-0.7.0

- old
+ new

@@ -1,7 +1,7 @@ class Array - # Returns positive index of an element - # based on cardinal positions 1 to n and n to -1. + # Returns the positive ordinal index given + # a cardinal position, 1 to n or -n to -1. # # require 'facet/array/pos' # # [1,2,3,4,5].pos(1) #=> 0 # [1,2,3,4,5].pos(-1) #=> 4