changeset 1:a8cac0e9b666

Add first example script
author IBBoard <dev@ibboard.co.uk>
date Mon, 02 Jan 2017 20:18:44 +0000
parents 3a1b8d8cd001
children 369e7cdf3ddf
files 1-Ruby/each.rb
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/1-Ruby/each.rb	Mon Jan 02 20:18:44 2017 +0000
@@ -0,0 +1,5 @@
+#! /usr/bin/env ruby
+
+properties = [ 'object oriented', 'duck typed', 'productive', 'fun']
+
+properties.each { | property | puts "Ruby is #{property}." }
\ No newline at end of file