view 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
line wrap: on
line source

#! /usr/bin/env ruby

properties = [ 'object oriented', 'duck typed', 'productive', 'fun']

properties.each { | property | puts "Ruby is #{property}." }