Included Modules

Bones::Plugins::Notes

Public Instance Methods

define_tasks() click to toggle source
    # File lib/bones/plugins/notes.rb, line 18
18:   def define_tasks
19:     config = ::Bones.config
20: 
21:     desc "Enumerate all annotations"
22:     task :notes do |t|
23:       id = if t.application.top_level_tasks.length > 1
24:         t.application.top_level_tasks.slice!(1..1).join(' ')
25:       end
26:       Bones::AnnotationExtractor.enumerate(
27:           config, config.notes.tags.join('|'), id, :tag => true)
28:     end
29: 
30:     namespace :notes do
31:       config.notes.tags.each do |tag|
32:         desc "Enumerate all #{tag} annotations"
33:         task tag.downcase.to_sym do |t|
34:           id = if t.application.top_level_tasks.length > 1
35:             t.application.top_level_tasks.slice!(1..1).join(' ')
36:           end
37:           Bones::AnnotationExtractor.enumerate(config, tag, id)
38:         end
39:       end
40:     end
41:   end
initialize_notes() click to toggle source
    # File lib/bones/plugins/notes.rb, line 6
 6:   def initialize_notes
 7:     ::Bones.config {
 8:       notes {
 9:         exclude  []
10:         extensions  %(.txt .rb .erb .rdoc) << ''
11:         tags  %(FIXME OPTIMIZE TODO)
12:       }
13:     }
14: 
15:     have?(:notes) { true }
16:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.