Skip to content

Instantly share code, notes, and snippets.

View mattapayne's full-sized avatar

Matt Payne mattapayne

View GitHub Profile
module Things
TYPE_ONE = 'type_one'.freeze
TYPE_TWO = 'type_two'.freeze
TYPE_THREE = 'type_three'.freeze
class ThingFactory
class << self
def call(type, args)
case type
when TYPE_ONE