Module: Boson::Inspector::MoreInspector

Included in:
Boson::Inspector
Defined in:
lib/boson/more_inspector.rb

Instance Method Summary collapse

Instance Method Details

#add_comment_scraped_dataObject



15
16
17
18
19
20
21
22
23
# File 'lib/boson/more_inspector.rb', line 15

def add_comment_scraped_data
  (@store[:method_locations] || []).select {|k,(f,l)| f == @library_file }.each do |cmd, (file, lineno)|
    scraped = CommentInspector.scrape(FileLibrary.read_library_file(file), lineno, MethodInspector.instance.current_module)
    @commands_hash[cmd] ||= {}
    MethodInspector::METHODS.each do |e|
      add_valid_data_to_config(e, scraped[e], cmd)
    end
  end
end

#add_dataObject



10
11
12
13
# File 'lib/boson/more_inspector.rb', line 10

def add_data
  super
  add_comment_scraped_data
end