Sha256: 485326c227955cf793f2a81843dbdbd09c8489dd528457d22de86560ce86acda
Contents?: true
Size: 360 Bytes
Versions: 17
Compression:
Stored size: 360 Bytes
Contents
require "active_support/core_ext/string/conversions" module Mundipagg class Key def initialize(value, prefix = "mun") @prefix, @value = prefix, value.to_s end def to_s "#{@prefix}:#{camelize}" end def camelize @value.camelize(format) end def format @prefix == "tns" ? :lower : :upper end end end
Version data entries
17 entries across 17 versions & 1 rubygems