./ruby/test/test.rb

download original
#!/usr/bin/ruby

def test1(n)
  3*n
end


print "#{test1(8)}\n\n"

tm = method(:test1)

print "#{tm.call(5)}\n\n"

print "#{self}\n\n"

print "#{self.class}\n\n"

  
back to test

(C) 1998-2017 Olaf Klischat <olaf.klischat@gmail.com>