Sha256: 6894b49ed616d5c6f677eab47fec00562a43074c4e755b217255dbcd1eb1a9c0

Contents?: true

Size: 449 Bytes

Versions: 1

Compression:

Stored size: 449 Bytes

Contents

module Extr
  class Config

    ROUTER_PATH = 'extr/direct_router'.freeze

    cattr_accessor :controller_config
    cattr_accessor :controller_path

    class << self
      def controller_config
        @@controller_config ||= Hash.new { |hash, key| hash[key] = [] }
      end

      def controller_path
        @@controller_path ||= {}
      end

      def get_controller_path(action)
        controller_path[action]
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
extr-1.0.0 lib/extr/config.rb