Sha256: f6723495955b63ee762f26f3a8ddcc2a8fb059441b97a2843bae443be5c54bdc

Contents?: true

Size: 229 Bytes

Versions: 8

Compression:

Stored size: 229 Bytes

Contents

module RubyPython
  # A subclass of ::Array that will convert to a Python Tuple automatically.
  class Tuple < ::Array
    def self.tuple(array)
      value = self.new
      value.replace(array.dup)
      value
    end
  end
end

Version data entries

8 entries across 8 versions & 3 rubygems

Version Path
lokeshh_rubypython-0.7.1 lib/rubypython/tuple.rb
lokeshh_rubypython-0.7 lib/rubypython/tuple.rb
rubypython-0.6.4 lib/rubypython/tuple.rb
rubypython-0.6.3 lib/rubypython/tuple.rb
rubypython-raspi-0.1.2 lib/rubypython/tuple.rb
rubypython-0.6.2 lib/rubypython/tuple.rb
rubypython-0.6.1 lib/rubypython/tuple.rb
rubypython-0.6.0 lib/rubypython/tuple.rb