Sha256: 3661d55f9b585ffc3b77aee20235444832b2710d0e58bd4a573fb60a7348ad72

Contents?: true

Size: 96 Bytes

Versions: 31

Compression:

Stored size: 96 Bytes

Contents

class Range
  def reverse
    first = self.first
    last = self.last
    last..first
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
origen-0.5.7 lib/origen/core_ext/range.rb
origen-0.5.6 lib/origen/core_ext/range.rb
origen-0.5.5 lib/origen/core_ext/range.rb
origen-0.5.4 lib/origen/core_ext/range.rb
origen-0.5.3 lib/origen/core_ext/range.rb
origen-0.5.2 lib/origen/core_ext/range.rb
origen-0.5.1 lib/origen/core_ext/range.rb
origen-0.5.0 lib/origen/core_ext/range.rb
origen-0.4.3 lib/origen/core_ext/range.rb
origen-0.4.2 lib/origen/core_ext/range.rb
origen-0.4.1 lib/origen/core_ext/range.rb
origen-0.4.0 lib/origen/core_ext/range.rb
origen-0.3.0 lib/origen/core_ext/range.rb
origen-0.2.6 lib/origen/core_ext/range.rb
origen-0.2.5 lib/origen/core_ext/range.rb
origen-0.2.4 lib/origen/core_ext/range.rb
origen-0.2.3 lib/origen/core_ext/range.rb
origen-0.2.2 lib/origen/core_ext/range.rb
origen-0.2.1 lib/origen/core_ext/range.rb
origen-0.2.0 lib/origen/core_ext/range.rb