Sha256: b2590c33dcbdd940f83c1eca30dead9963a8f161f7198da6ab3e45f217b6e57f
Contents?: true
Size: 1003 Bytes
Versions: 1
Compression:
Stored size: 1003 Bytes
Contents
#!/usr/bin/env ruby # frozen_string_literal: true require 'irb' $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib') require 'te_reo_maori' def putanga exit end extend Tau # Make numbers available puts 'Nau mai haere mai. Welcome to this application for learning and interacting with Maori.' puts 'Type "putanga" to exit' puts 'Try and perform +, -, * (times), / (divide) with Maori' puts 'The numbers are: ' Tau.rarangi.each do |tau, whakamaoritanga| puts "#{tau}: #{whakamaoritanga}" end puts 'If you type a number and press you will see Maori equivalent. Numbers > 10 must be wrapped in (). Greatest supported is 999' puts 'Example of bigger numbers. 12: "tekau ma rua". Add 23 + 33: "(rua tekau ma toru) + (toru tekau ma toru)"' puts 'See integer form by calling "to_s", e.g., "((rua tekau ma toru) + (toru tekau ma toru)).to_s" ' puts 'If you have any ideas on how this can be improved add issue to https://gitlab.com/samuel-garratt/te_reo_maori/-/issues' IRB.start(__FILE__)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
te_reo_maori-0.1.4 | exe/te_reo_maori |