Class: RspecGenerateDoc::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rspec_generate_doc/configuration.rb

Instance Attribute Summary collapse

Instance Attribute Details

#action_decoratorObject



16
17
18
# File 'lib/rspec_generate_doc/configuration.rb', line 16

def action_decorator
  @action_decorator || RspecGenerateDoc::Decorators::Action
end

#docs_dirObject



8
9
10
# File 'lib/rspec_generate_doc/configuration.rb', line 8

def docs_dir
  @docs_dir || "#{Rails.root}/docs"
end

#file_prefixObject



28
29
30
# File 'lib/rspec_generate_doc/configuration.rb', line 28

def file_prefix
  @file_prefix || '_'
end

#file_suffixObject



32
33
34
# File 'lib/rspec_generate_doc/configuration.rb', line 32

def file_suffix
  @file_suffix || ''
end

#localeObject



12
13
14
# File 'lib/rspec_generate_doc/configuration.rb', line 12

def locale
  @locale || I18n.default_locale
end

#parameter_decoratorObject



20
21
22
# File 'lib/rspec_generate_doc/configuration.rb', line 20

def parameter_decorator
  @parameter_decorator || RspecGenerateDoc::Decorators::Parameter
end

#template_fileObject



24
25
26
# File 'lib/rspec_generate_doc/configuration.rb', line 24

def template_file
  @template_file || "#{File.dirname(__FILE__)}/templates/slate.md.erb"
end