Sha256: 09dd3cfa2e05949bf62918c02cb1fb09baae19c2fe6d152575093b8ecedf2ce0

Contents?: true

Size: 550 Bytes

Versions: 14

Compression:

Stored size: 550 Bytes

Contents

module Patriot
  module Util
    module Config
      # base class of configuration classes
      class Base
        # get value for the specified key
        # @param [String] key
        # @param [Object] default default value
        # @return [Object] the value for the ke
        def get(key, default=nil)
          raise NotImplementedError
        end

        # get path where this configuration is loaded
        # @return [String] path to the file
        def path
          raise NotImplementedError
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
patriot-workflow-scheduler-0.8.8 lib/patriot/util/config/base.rb
patriot-workflow-scheduler-0.8.7 lib/patriot/util/config/base.rb
patriot-workflow-scheduler-0.8.6 lib/patriot/util/config/base.rb
patriot-workflow-scheduler-0.8.5 lib/patriot/util/config/base.rb
patriot-workflow-scheduler-0.8.4 lib/patriot/util/config/base.rb
patriot-workflow-scheduler-0.8.3 lib/patriot/util/config/base.rb
patriot-workflow-scheduler-0.8.2 lib/patriot/util/config/base.rb
patriot-workflow-scheduler-0.8.1 lib/patriot/util/config/base.rb
patriot-workflow-scheduler-0.8.0 lib/patriot/util/config/base.rb
patriot-workflow-scheduler-0.7.2 lib/patriot/util/config/base.rb
patriot-workflow-scheduler-0.7.1 lib/patriot/util/config/base.rb
patriot-workflow-scheduler-0.7.0 lib/patriot/util/config/base.rb
patriot-workflow-scheduler-0.6.2 lib/patriot/util/config/base.rb
patriot-workflow-scheduler-0.6.1 lib/patriot/util/config/base.rb