From: Csaba Henk Date: 2005-01-25T06:00:50+09:00 Subject: Re: Complex Library Object/Class and its Interface On 2005-01-24, Trans wrote: > A fair suggestion. The problem though is I'd have to make an instance > of the class just to read the exclusive, start and stop information. I > thought about doing it that way and creating dummy tokens to use, but > using dummy tokens seemed rather unRubyish. It would be better if I > could get that info with out instantiating the class. Make those methods instance methods, but... Don't make it a class, make it a module. Extend it by itself. Instead of class Marker < Parser::Token .... do special customizations as module Marker extend self extend Parser::Token .... Csaba