Sha256: e6a774de93b551be52ab6cd5630fc7d4d72dbc7a6dc3628b975f243d30b1a46f
Contents?: true
Size: 166 Bytes
Versions: 19
Compression:
Stored size: 166 Bytes
Contents
module Presenter def self.for(value) klass = "#{value.class.name}Presenter".constantize klass.send(:new, value) rescue NameError value.to_s end end
Version data entries
19 entries across 19 versions & 1 rubygems