Ron Fox wrote:
> As defined, archive is an instance method.
> 
> try changing
> def archive
> 
> to
> def self.archive
> 
> or
> 
> def MainLogic.archive
> 
> To make it a class method.
Heesob Park wrote:
>class MainLogic
>  class << self

Yeah, it works. Thanks guys! But actually out of curiosity( i think it's 
also good to know, so that I can help anyone on this forum in future,;), 
what is it that self does?
Especially for class<<self, is this an instance of inheritance?


-- 
Posted via http://www.ruby-forum.com/.