Sha256: e2b01874bd1a5e8c014429efc68ba7bd0866f3feb147e2245f9dae58b3c64974

Contents?: true

Size: 513 Bytes

Versions: 3

Compression:

Stored size: 513 Bytes

Contents

# frozen_string_literal: true

module Kitchen
  # Kitchen configuration
  #
  class Config

    # Named CSS or XPath selectors
    #
    # @return [Selectors::Base]
    #
    attr_reader :selectors

    # Creates a new config from a file (not implemented)
    #
    def self.new_from_file(_file)
      raise 'NYI'
    end

    # Creates a new Config instance
    #
    def initialize(hash: {}, selectors: nil)
      @selectors = selectors || Kitchen::Selectors::Standard1.new
      @hash = hash
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
openstax_kitchen-3.2.0 lib/kitchen/config.rb
openstax_kitchen-3.1.0 lib/kitchen/config.rb
openstax_kitchen-3.0.0 lib/kitchen/config.rb