I was introduced to Ruby by a charming German girl called Ulrika. She
was writing Watir programs for a vendor product.
On an old computer, I just found a program she had written. It scripts a
quote-and-buy insurance web site.
She has a ‘main’ program that calls a class that contains a series of
procedural methods working through the screens. Apart from that she has
a class that generates random input.
As a procedural program it is perfectly readable. However both of these
two classes contain no class or instance data. They either refer to
globals or receive parameters.
Now I think there ought to be a rule that a class is not a class if it
only has methods. It might be a module if you want to wrap it neatly.
If you saw a class without persistent data, would you be suspicious?