comparison 1-Ruby/each.rb @ 1:a8cac0e9b666

Add first example script
author IBBoard <dev@ibboard.co.uk>
date Mon, 02 Jan 2017 20:18:44 +0000
parents
children 369e7cdf3ddf
comparison
equal deleted inserted replaced
0:3a1b8d8cd001 1:a8cac0e9b666
1 #! /usr/bin/env ruby
2
3 properties = [ 'object oriented', 'duck typed', 'productive', 'fun']
4
5 properties.each { | property | puts "Ruby is #{property}." }