From: "Jan E." Date: 2012-07-07T20:17:39+09:00 Subject: Re: how do I call a method with a period and pass the object before it ? Hi, You have to define a "bits_to_bytes" method in the Integer class: class Integer def bits_to_bytes # your code end end puts 8.bits_to_bytes However, it's probably not a good idea to clutter the Integer class with all kinds of special methods. Especially since "it looks better" isn't really an argument. I'd rather put the "bits_to_bytes" into a module like "BitOperations" or so. Then you can call it by "BitOperations.bits_to_bytes(8)" -- Posted via http://www.ruby-forum.com/.