Class: Kitchen::Config
Overview
Kitchen configuration
Instance Attribute Summary collapse
- #enable_all_namespaces ⇒ Boolean
- #enable_search_cache ⇒ Boolean
-
#selectors ⇒ Selectors::Base
readonly
Named CSS or XPath selectors.
Class Method Summary collapse
-
.new_from_file(_file) ⇒ Object
Creates a new config from a file (not implemented).
Instance Method Summary collapse
-
#initialize(hash: {}, selectors: nil) ⇒ Config
constructor
Creates a new Config instance.
Constructor Details
#initialize(hash: {}, selectors: nil) ⇒ Config
Creates a new Config instance
34 35 36 37 38 39 |
# File 'lib/kitchen/config.rb', line 34 def initialize(hash: {}, selectors: nil) @selectors = selectors || Kitchen::Selectors::Standard1.new @enable_all_namespaces = hash[:enable_all_namespaces] || true @enable_search_cache = hash[:enable_search_cache] || false @hash = hash end |
Instance Attribute Details
#enable_all_namespaces ⇒ Boolean
18 19 20 |
# File 'lib/kitchen/config.rb', line 18 def enable_all_namespaces @enable_all_namespaces end |
#enable_search_cache ⇒ Boolean
24 25 26 |
# File 'lib/kitchen/config.rb', line 24 def enable_search_cache @enable_search_cache end |
#selectors ⇒ Selectors::Base (readonly)
Named CSS or XPath selectors
12 13 14 |
# File 'lib/kitchen/config.rb', line 12 def selectors @selectors end |
Class Method Details
.new_from_file(_file) ⇒ Object
Creates a new config from a file (not implemented)
28 29 30 |
# File 'lib/kitchen/config.rb', line 28 def self.new_from_file(_file) raise 'NYI' end |