Class: MinitestShopifyThemes::Configuration
- Inherits:
-
Object
- Object
- MinitestShopifyThemes::Configuration
- Defined in:
- lib/minitest_shopify_themes/configuration.rb
Instance Attribute Summary collapse
-
#layout_file ⇒ Object
Returns the value of attribute layout_file.
-
#selenium_driver ⇒ Object
Returns the value of attribute selenium_driver.
-
#theme_root ⇒ Object
Returns the value of attribute theme_root.
Instance Method Summary collapse
- #assets_dir ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 |
# File 'lib/minitest_shopify_themes/configuration.rb', line 8 def initialize self.theme_root = "./theme" @selenium_driver = :selenium_chrome_headless @layout_file = nil end |
Instance Attribute Details
#layout_file ⇒ Object
Returns the value of attribute layout_file.
6 7 8 |
# File 'lib/minitest_shopify_themes/configuration.rb', line 6 def layout_file @layout_file end |
#selenium_driver ⇒ Object
Returns the value of attribute selenium_driver.
6 7 8 |
# File 'lib/minitest_shopify_themes/configuration.rb', line 6 def selenium_driver @selenium_driver end |
#theme_root ⇒ Object
Returns the value of attribute theme_root.
5 6 7 |
# File 'lib/minitest_shopify_themes/configuration.rb', line 5 def theme_root @theme_root end |
Instance Method Details
#assets_dir ⇒ Object
25 26 27 |
# File 'lib/minitest_shopify_themes/configuration.rb', line 25 def assets_dir @theme_root&.join("assets") end |