class RubyPython::Tuple

A subclass of ::Array that will convert to a Python Tuple automatically.

Public Class Methods

tuple(array) click to toggle source
# File lib/rubypython/tuple.rb, line 4
def self.tuple(array)
  value = self.new
  value.replace(array.dup)
  value
end