Class: Gizmo::Configuration
- Inherits:
-
Object
- Object
- Gizmo::Configuration
- Defined in:
- lib/gizmo/configuration.rb
Overview
Gizmo can be configured using the Gizmo.configure method. For example:
Gizmo.configure do |config|
config.mixin_dir = File.dirname(__FILE__) + '/features/support/pages'
end
Instance Attribute Summary collapse
-
#mixin_dir ⇒ Object
where to load mixin files from.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
25 26 27 |
# File 'lib/gizmo/configuration.rb', line 25 def initialize self.mixin_dir = Pathname.new(Dir.pwd).join("features/support/pages") end |
Instance Attribute Details
#mixin_dir ⇒ Object
where to load mixin files from
23 24 25 |
# File 'lib/gizmo/configuration.rb', line 23 def mixin_dir @mixin_dir end |