diff options
| -rw-r--r-- | challenge-108/abigail/README.md | 1 | ||||
| -rw-r--r-- | challenge-108/abigail/ruby/ch-1.rb | 12 | ||||
| -rw-r--r-- | challenge-108/abigail/t/ctest.ini | 6 |
3 files changed, 16 insertions, 3 deletions
diff --git a/challenge-108/abigail/README.md b/challenge-108/abigail/README.md index 66ded7e046..28df162888 100644 --- a/challenge-108/abigail/README.md +++ b/challenge-108/abigail/README.md @@ -12,6 +12,7 @@ location in the memory. * [Perl](perl/ch-1.pl) * [Python](python/ch-1.py) * [R](r/ch-1.r) +* [Ruby](ruby/ch-1.rb) ### Blog diff --git a/challenge-108/abigail/ruby/ch-1.rb b/challenge-108/abigail/ruby/ch-1.rb new file mode 100644 index 0000000000..fe85212b95 --- /dev/null +++ b/challenge-108/abigail/ruby/ch-1.rb @@ -0,0 +1,12 @@ + +#!/usr/bin/ruby + +# +# See ../README.md +# + +# +# Run as: ruby ch-1.rb +# + +puts (Object . new . object_id << 1) diff --git a/challenge-108/abigail/t/ctest.ini b/challenge-108/abigail/t/ctest.ini index f34ee1531b..3bba3fcf1f 100644 --- a/challenge-108/abigail/t/ctest.ini +++ b/challenge-108/abigail/t/ctest.ini @@ -19,13 +19,13 @@ no_input = 1 [2-1/sed]
no_input = 0
-[2-1/awk,bash,c,lua,node,perl,python]
+[2-1/awk,bash,c,lua,node,perl,python,ruby]
skip = "Not for this language"
[2-2,2-3,2-4]
skip = "Only for Perl"
-[2-2/awk,bash,c,lua,node,perl,python]
+[2-2/awk,bash,c,lua,node,perl,python,ruby]
skip = 0
args = plain
@@ -33,6 +33,6 @@ args = plain skip = 0
args = fetch
-[2-4/awk,bash,c,lua,node,perl,python]
+[2-4/awk,bash,c,lua,node,perl,python,ruby]
skip = 0
args = compute
|
