Sha256: bb8c06b372351d3cc8cf3390541c6e53297a380775e63d12eb621d5265667721

Contents?: true

Size: 345 Bytes

Versions: 1

Compression:

Stored size: 345 Bytes

Contents

module CanTango
  class Configuration
    class Accounts < Registry::Clazz
      include Singleton

      def register_account clazz
        register account_name(clazz), clazz
      end

      protected
      
      def account_name clazz
        clazz.name.demodulize.gsub(/(.+)Account$/, '\1')..underscore
      end
      
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
cantango-config-0.1.7 lib/cantango/configuration/accounts.rb