Class: Cornichon::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/cornichon/config.rb

Class Method Summary collapse

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_pathObject



10
11
12
# File 'lib/cornichon/config.rb', line 10

def relative_feature_path
  @relative_feature_path ||= 'features/cornichon/features'
end

.relative_presenter_pathObject



18
19
20
# File 'lib/cornichon/config.rb', line 18

def relative_presenter_path
  @relative_presenter_path ||= 'features/cornichon/presenters'
end

.relative_template_pathObject



14
15
16
# File 'lib/cornichon/config.rb', line 14

def relative_template_path
  @relative_template_path ||= 'features/cornichon/templates'
end