ruby on rails - Why there is discrepanceis in number of instance methods? -
ruby on rails - Why there is discrepanceis in number of instance methods? -
while going through ruby monk have seen count of float instance methods 201 when tried in irb showing 114. helpful if create me understand why there alter in number of count in instance methods , on factors instance methods depends on.
puts float.instance_methods.count
there no discrepancy in total number of instance methods of ruby float
class (of same version). number may vary based on ruby version, no 2 same ruby versions have different instance methods.
i have seen count of float instance methods 201
what seeing total number of instance methods of extended float class. extension done rails.
for example, in rubymonk terminal, instance methods list of float class shows duplicable?
in list, not instance method of float class. it's implemented in activesupport
extending core object
class , deprecated after rails 3.2.13.
ruby-on-rails ruby ruby-1.9.3
Comments
Post a Comment