[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ruby-talk
Subject:    * operator, Float
From:       "=?utf-8?Q?=d0=98=d0=b2=d0=b0=d0=bd_=d0=a1=d1=82=d0=b0=d1=88=d0=ba=d0=be?=" <joh
Date:       2010-07-25 17:05:48
Message-ID: 7798c8ccf50240053edfff27b02ab877 () ruby-forum ! com
[Download RAW message or body]

Where is the * operator defined for Float?

ree-1.8.7-2010.02 > 3.0.methods.grep "*"
 => ["*"]
ree-1.8.7-2010.02 > 3.0.class
 => Float
ree-1.8.7-2010.02 > Float.methods.grep "*"
 => []
ree-1.8.7-2010.02 > Float.superclass
 => Numeric
ree-1.8.7-2010.02 > Numeric.methods.grep "*"
 => []
ree-1.8.7-2010.02 > Numeric.superclass
 => Object
ree-1.8.7-2010.02 > Object.methods.grep "*"
 => []
ree-1.8.7-2010.02 > Object.superclass
 => nil

I'm guessing there's a mixin somewhere or this has to do with
eigenclasses or perhaps a C-module has been mixed-in between Numeric and
Float.  Where do I look at this code?
-- 
Posted via http://www.ruby-forum.com/.

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic