From 9d114dfd432c4a5a031746ece53fcb938f543261 Mon Sep 17 00:00:00 2001 From: Marvin Johanning Date: Tue, 14 Nov 2017 16:39:27 +0100 Subject: [PATCH 1/4] ruby: add page --- pages/common/ruby.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 pages/common/ruby.md diff --git a/pages/common/ruby.md b/pages/common/ruby.md new file mode 100644 index 0000000000..34d8bd3c30 --- /dev/null +++ b/pages/common/ruby.md @@ -0,0 +1,23 @@ +# ruby + +> Ruby programming language interpreter. + +- Open an Interactive Ruby Shell (REPL): + +`irb` + +- Execute a Ruby script: + +`ruby {{script.rb}}` + +- Execute a single command in the command line + +`ruby -e {{command}}` + +- Check if the given Ruby script is written correctly (Syntax check) + +`ruby -c {{script.rb}}` + +- Show the version of Ruby you are using + +`ruby -v` From 7754dfcda54c0eb96c75e65876585fde6154d4dc Mon Sep 17 00:00:00 2001 From: Marvin Johanning Date: Tue, 14 Nov 2017 16:44:00 +0100 Subject: [PATCH 2/4] Add colon to example descriptions --- pages/common/ruby.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/common/ruby.md b/pages/common/ruby.md index 34d8bd3c30..90bd145efa 100644 --- a/pages/common/ruby.md +++ b/pages/common/ruby.md @@ -10,14 +10,14 @@ `ruby {{script.rb}}` -- Execute a single command in the command line +- Execute a single command in the command line: `ruby -e {{command}}` -- Check if the given Ruby script is written correctly (Syntax check) +- Check if the given Ruby script is written correctly (Syntax check): `ruby -c {{script.rb}}` -- Show the version of Ruby you are using +- Show the version of Ruby you are using: `ruby -v` From 9d3e9c81096e9c1daa0195f4f01a13f0558ddf57 Mon Sep 17 00:00:00 2001 From: Marvin Johanning Date: Tue, 14 Nov 2017 19:58:57 +0100 Subject: [PATCH 3/4] Change wording Changed the wording of an explanation --- pages/common/ruby.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/ruby.md b/pages/common/ruby.md index 90bd145efa..51f9e41e8d 100644 --- a/pages/common/ruby.md +++ b/pages/common/ruby.md @@ -14,7 +14,7 @@ `ruby -e {{command}}` -- Check if the given Ruby script is written correctly (Syntax check): +- Check for syntax errors on a given Ruby script: `ruby -c {{script.rb}}` From 8a28c6d96079efdb6160368c96629d87a842297a Mon Sep 17 00:00:00 2001 From: Marvin Johanning Date: Tue, 28 Nov 2017 20:38:40 +0100 Subject: [PATCH 4/4] Change wording Changed wording --- pages/common/ruby.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/common/ruby.md b/pages/common/ruby.md index 51f9e41e8d..7f8389eca1 100644 --- a/pages/common/ruby.md +++ b/pages/common/ruby.md @@ -10,7 +10,7 @@ `ruby {{script.rb}}` -- Execute a single command in the command line: +- Execute a single Ruby command in the command line: `ruby -e {{command}}`