From f3a7bca5545d1e56e75226cc8a65b6cfe8f7f46a Mon Sep 17 00:00:00 2001 From: Jerry D'Antonio Date: Sun, 3 Aug 2014 22:39:39 -0400 Subject: [PATCH] wip: Created empty Tuple class. --- lib/functional.rb | 1 + lib/functional/tuple.rb | 13 +++++++++++++ spec/functional/tuple_spec.rb | 10 ++++++++++ 3 files changed, 24 insertions(+) create mode 100644 lib/functional/tuple.rb create mode 100644 spec/functional/tuple_spec.rb diff --git a/lib/functional.rb b/lib/functional.rb index fbc3540..34d33d1 100644 --- a/lib/functional.rb +++ b/lib/functional.rb @@ -7,6 +7,7 @@ require 'functional/protocol' require 'functional/protocol_info' require 'functional/record' +require 'functional/tuple' require 'functional/type_check' require 'functional/union' require 'functional/value_struct' diff --git a/lib/functional/tuple.rb b/lib/functional/tuple.rb new file mode 100644 index 0000000..8f8e18d --- /dev/null +++ b/lib/functional/tuple.rb @@ -0,0 +1,13 @@ +module Functional + + # @see http://en.wikipedia.org/wiki/Tuple + # @see http://msdn.microsoft.com/en-us/library/system.tuple.aspx + # @see http://www.tutorialspoint.com/python/python_tuples.htm + # @see http://en.cppreference.com/w/cpp/utility/tuple + # @see http://docs.oracle.com/javaee/6/api/javax/persistence/Tuple.html + # @see http://www.erlang.org/doc/reference_manual/data_types.html + # @see http://www.erlang.org/doc/man/erlang.html#make_tuple-2 + class Tuple + + end +end diff --git a/spec/functional/tuple_spec.rb b/spec/functional/tuple_spec.rb new file mode 100644 index 0000000..41d4285 --- /dev/null +++ b/spec/functional/tuple_spec.rb @@ -0,0 +1,10 @@ +require 'spec_helper' + +module Functional + + describe Tuple do + + pending + + end +end