Class: RspecGenerateDoc::Configuration
- Inherits:
-
Object
- Object
- RspecGenerateDoc::Configuration
- Defined in:
- lib/rspec_generate_doc/configuration.rb
Instance Attribute Summary collapse
- #action_decorator ⇒ Object
- #docs_dir ⇒ Object
- #file_prefix ⇒ Object
- #file_suffix ⇒ Object
- #locale ⇒ Object
- #parameter_decorator ⇒ Object
- #template_file ⇒ Object
Instance Attribute Details
#action_decorator ⇒ Object
16 17 18 |
# File 'lib/rspec_generate_doc/configuration.rb', line 16 def action_decorator @action_decorator || RspecGenerateDoc::Decorators::Action end |
#docs_dir ⇒ Object
8 9 10 |
# File 'lib/rspec_generate_doc/configuration.rb', line 8 def docs_dir @docs_dir || "#{Rails.root}/docs" end |
#file_prefix ⇒ Object
28 29 30 |
# File 'lib/rspec_generate_doc/configuration.rb', line 28 def file_prefix @file_prefix || '_' end |
#file_suffix ⇒ Object
32 33 34 |
# File 'lib/rspec_generate_doc/configuration.rb', line 32 def file_suffix @file_suffix || '' end |
#locale ⇒ Object
12 13 14 |
# File 'lib/rspec_generate_doc/configuration.rb', line 12 def locale @locale || I18n.default_locale end |
#parameter_decorator ⇒ Object
20 21 22 |
# File 'lib/rspec_generate_doc/configuration.rb', line 20 def parameter_decorator @parameter_decorator || RspecGenerateDoc::Decorators::Parameter end |
#template_file ⇒ Object
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 |