Gem encapsulating patterns for writing excellent APIs in Ruby