Method: Betterdocs::Global.sections
- Defined in:
- lib/betterdocs/global.rb
.sections ⇒ Object
204 205 206 207 208 209 210 211 212 213 |
# File 'lib/betterdocs/global.rb', line 204 def sections @sections and return @sections Dir.chdir controllers_dir do actions.each_with_object(@sections = {}) do |action, sections| sections[action.section] ||= Section.new(action.section) sections[action.section] << action end end @sections.freeze end |