Comment

Comment by danso

Right...but even in this trivial gem, there may be the need to configure more than one parameter. And by having Configuration be it's own object, you can encode some validation logic at the configuration stage.

I do agree that the constructor should have the option of passing in a Hash, which is then passed directly to the Configuration option.

parent danso 12 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton