Module: Betterdocs::Generator::ConfigShortcuts
Instance Method Summary collapse
- #api_base_url ⇒ Object
- #config ⇒ Object
- #project_name ⇒ Object
- #section(name) ⇒ Object
- #sections ⇒ Object
Instance Method Details
#api_base_url ⇒ Object
23 24 25 |
# File 'lib/betterdocs/generator/config_shortcuts.rb', line 23 def api_base_url config end |
#config ⇒ Object
4 5 6 |
# File 'lib/betterdocs/generator/config_shortcuts.rb', line 4 def config Betterdocs::Global.config end |
#project_name ⇒ Object
8 9 10 |
# File 'lib/betterdocs/generator/config_shortcuts.rb', line 8 def project_name config.project_name end |
#section(name) ⇒ Object
17 18 19 20 21 |
# File 'lib/betterdocs/generator/config_shortcuts.rb', line 17 def section(name) name = name.to_sym config.section(name) or STDERR.puts "Section #{name.inspect} does not exist: Link in readme file won't work." "sections/#{name}" end |
#sections ⇒ Object
12 13 14 15 |
# File 'lib/betterdocs/generator/config_shortcuts.rb', line 12 def sections config.api_controllers.each(&method(:load)) config.sections end |