From: Gary Wright Date: 2007-03-30T15:12:47+09:00 Subject: Re: class methods and instance variables in ActiveRecord::Base On Mar 30, 2007, at 1:20 AM, zig wrote: > On Mar 25, 11:42 am, "zig" wrote: >> Therefore class instance >> variables are not the same thing as class variables. >> > > One thing we _can_ say is that class instance *methods* are the same > thing as class methods, right? In fact, the term "class instance > method" doesn't exist as a distinct concept, precisely because they > are the same. I'm not sure that 'class instance methods' is a well-defined term. I think what you are after is instance methods of a singleton class of a class are the same as singleton methods of a class are the same as class singleton methods are the same as class methods Via irb: >> Array.singleton_methods => ["[]"] >> Regexp.singleton_methods => ["escape", "quote", "last_match", "compile", "union"] >> Time.singleton_methods => ["rfc822", "gm", "zone_offset", "parse", "iso8601", "rfc2822", "utc", "xmlschema", "today", "at", "mktime", "now", "_load", "httpdate", "local", "times"] But 'Class instance methods' is well-defined: >> Class.instance_methods(false) => ["new", "superclass", "allocate"]