Method: Functional::Tuple#to_a

Defined in:
lib/functional/tuple.rb

#to_aArray Also known as: to_ary

Create a standard Ruby mutable array containing the tuple items in the same order.

Returns:

  • (Array)

    the new array created from the tuple



233
234
235
# File 'lib/functional/tuple.rb', line 233

def to_a
  @data.dup
end