Sha256: 6ca39655cf6ace998d4b75b89d667d5d2446ac234193afc0ec88100e68d37739
Contents?: true
Size: 567 Bytes
Versions: 12
Compression:
Stored size: 567 Bytes
Contents
module Betterdocs module Generator module ConfigShortcuts def config Betterdocs::Global.config end def project_name config.project_name end def sections config.api_controllers.each(&method(:load)) config.sections end 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 def api_base_url config end end end end
Version data entries
12 entries across 12 versions & 1 rubygems