class Donkey

Public Instance Methods

ex1_1() click to toggle source
# File lib/rubynovice/donkey.rb, line 3
def ex1_1
  return "hello world.\n"
end
ex1_2() click to toggle source
# File lib/rubynovice/donkey.rb, line 7
def ex1_2
  return 1+1
end
ex1_3() click to toggle source
# File lib/rubynovice/donkey.rb, line 11
def ex1_3
  ans = 1+1
  text = sprintf("ans=%i\n",ans)
  return text
end