module Oracle

Public Class Methods

main( args=ARGV ) click to toggle source
# File lib/cryptoquotes.rb, line 132
def self.main( args=ARGV )
  Tool.new.run( args )
end
say() click to toggle source
# File lib/cryptoquotes.rb, line 78
def self.say    ## print a random crypto quote
  q = Quotes.random

  block_indent = 6  ## note: indent by six spaces for now
  ## puts '  Crypto Quote of the Day:'   ## start with an empty line
  puts ''
  q['quote'].each_line do |line|
    print ' ' * block_indent
    print line
  end
  puts ''   ## end with an empty line
  print ' ' * (block_indent+4)
  print "- #{q['by']}"
  print "\n"
  ## todo/fix: add date if availabe (month and year) - why? why not?
  puts ''   ## end with an empty line
end
Also aliased as: says
says()
Alias for: say