From: malamute jute Date: 2006-04-26T00:35:06+09:00 Subject: difference between :: and . in calling methods newb here. whats the difference between :: and . in calling methods? like for example: File::open and File.open As I understand, you use :: in invoking the constant of a class like Math::PI . Another thing is if i type these in IRB, it returns the same result: Object::constants Object.constants But if i type this, i get undefined method error Object.constants.Numeric whereas this is ok: Object::constants::Numeric So the question now is when do I use the :: and when do I use the . ? Many thanks. -- Posted via http://www.ruby-forum.com/.