Mercurial > repos > other > SevenLanguagesInSevenWeeks
view 1-Ruby/object-all-things-2.rb @ 97:85a5e9a6ef5c
Add more notes on extracting Just/Maybe values
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sun, 30 Jun 2019 16:09:44 +0100 |
parents | 8d46064c9afc |
children |
line wrap: on
line source
#! /usr/bin/env ruby objects = [ 4, 3.14, 'Pi', 'π', false, true ] objects.each do |obj| puts "#{obj} (#{obj.class})" obj.methods.each { |method| puts " #{method}" } end