A layout for implementation of ruby search object pattern