Sha256: 65e969582bce4aab104635e88cba82f46d1833014e8f305fa37ac24af19fd396
Contents?: true
Size: 364 Bytes
Versions: 2
Compression:
Stored size: 364 Bytes
Contents
module CanTango class Config class Accounts < CanTango::Registry::Clazz include Singleton def register_account clazz register account_name(clazz), clazz self end protected def account_name clazz clazz.name.demodulize.gsub(/(.+)Account$/, '\1').to_s.underscore end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
cantango-config-0.2.1 | lib/cantango/config/accounts.rb |
cantango-config-0.2.0 | lib/cantango/config/accounts.rb |