csherin/mazes — Issue #3: print/tessellation is pretty complex
Author: PragTob
Created: 2012-01-20 19:01:12+00:00
State: open

In generic.rb there is the following code:

def print
Formatter::Ascii.const_get(tessellation).new(self).to_s
end

def tessellation
self.class.name[/::(.*)$/, 1]
end

I believe that this is too complex... I know that in the long run it might reduce the amount of methods you have to implement, which is good. As it stands right now however I'd personally rather have the print method in the subclasses that know their appropriate formatter. Please feel free to convince me to otherwise =)