Class: Cornichon::Config
- Inherits:
-
Object
- Object
- Cornichon::Config
- Defined in:
- lib/cornichon/config.rb
Class Method Summary collapse
- .configure(opts) ⇒ Object
- .relative_feature_path ⇒ Object
- .relative_presenter_path ⇒ Object
- .relative_template_path ⇒ Object
Class Method Details
.configure(opts) ⇒ Object
4 5 6 7 8 |
# File 'lib/cornichon/config.rb', line 4 def configure(opts) @relative_feature_path = opts[:features_path] if opts[:features_path] @relative_template_path = opts[:templates_path] if opts[:templates_path] @relative_presenter_path = opts[:presenters_path] if opts[:presenters_path] end |
.relative_feature_path ⇒ Object
10 11 12 |
# File 'lib/cornichon/config.rb', line 10 def relative_feature_path @relative_feature_path ||= 'features/cornichon/features' end |
.relative_presenter_path ⇒ Object
18 19 20 |
# File 'lib/cornichon/config.rb', line 18 def relative_presenter_path @relative_presenter_path ||= 'features/cornichon/presenters' end |
.relative_template_path ⇒ Object
14 15 16 |
# File 'lib/cornichon/config.rb', line 14 def relative_template_path @relative_template_path ||= 'features/cornichon/templates' end |