D
Daniel Berger
Hi all,
Ruby 1.8.4
I realize there's a Fixnum#power! method defined in rational.rb, but it appears
that Fixnum has that method available to it whether or not I require
rational.rb. I looked through the Ruby source and didn't see anything.
djberge@~-710>irb
irb(main):001:0> Fixnum.instance_methods(false).grep(/power/)
=> ["rpower", "power!"]
So, where the heck is it coming from?
Thanks,
Dan
Ruby 1.8.4
I realize there's a Fixnum#power! method defined in rational.rb, but it appears
that Fixnum has that method available to it whether or not I require
rational.rb. I looked through the Ruby source and didn't see anything.
djberge@~-710>irb
irb(main):001:0> Fixnum.instance_methods(false).grep(/power/)
=> ["rpower", "power!"]
So, where the heck is it coming from?
Thanks,
Dan