Sha256: 00a79c2d6710db33c0b66e891f22c36b7a288f894d3f7ef41c9dbd4f90d02731

Contents?: true

Size: 310 Bytes

Versions: 1

Compression:

Stored size: 310 Bytes

Contents

#!/usr/bin/env ruby

# tuple.rb
# yesmar@speakeasy.net

module Kernel
  def Tuple(*ary)
    ary = ary[0] if ary.size == 1 and ary[0].kind_of?(Enumerable)
    ary = ary.to_a unless ary.kind_of?(Array)
    ary.extend Comparable
  end
end

raise RuntimeError, 'This library is for require only' if $0 == __FILE__

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rex-0.0.4 lib/rex/modules/tuple.rb