One-liner methods in Ruby are useful when you have commonly used variants of classes, but don't want to initialize them with the same arguments or via class methods.

This is a Phlex component that I initialize via `BoxComponent.new`, and variants via `BoxComponent::Small.new`, etc.
Post image

Comments