view 1-Ruby/object-all-things.rb @ 78:75dbcd30dee5

Add final exercise code from Erlang It works, but it never made much sense because there was too much magic
author IBBoard <dev@ibboard.co.uk>
date Sat, 01 Jun 2019 20:10:37 +0100
parents 2b423d86da51
children
line wrap: on
line source

#! /usr/bin/env ruby

4
4.class
puts 4.class
4 + 4
puts 4 + 4
4.methods
4.methods.each { |method| puts "4.#{method}" }