From: KONTRA Gergely Date: 2003-05-13T21:39:34+09:00 Subject: Ruby OO? sin method? puts method? Hi! Ruby is said to be pure OO language. The often referred example is the abs method irb(main):001:0> RUBY_VERSION => "1.6.8" irb(main):002:0> 1.abs => 1 irb(main):003:0> 0.5.sin NameError: undefined method `sin' for 0.5:Float from (irb):3 irb(main):004:0> Math.sin(0.5) => 0.4794255386 irb(main):005:0> irb(main):005:0> "asdf".puts NameError: private method `puts' called for "asdf":String from (irb):5 Than why not sin is a method? And puts? Gergo -- +-[ Kontra, Gergely PhD student Room IB113 ]---------+ | http://www.mcl.hu/~kgergely "Olyan langesz vagyok, hogy | | Mobil:(+36 20) 356 9656 ICQ: 175564914 poroltoval kellene jarnom" | +-- Magyar php mirror es magyar php dokumentacio: http://hu.php.net --+