Module: Boson::MethodInspector::MoreInspector

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

Instance Method Summary collapse

Instance Method Details

#inspector_in_file?(meth, inspector_method) ⇒ Boolean

Returns:

  • (Boolean)


32
33
34
35
36
37
38
# File 'lib/boson/more_inspector.rb', line 32

def inspector_in_file?(meth, inspector_method)
  return false if !super
  if File.exists?(file_line[0]) && (options = CommentInspector.scrape(
    FileLibrary.read_library_file(file_line[0]), file_line[1], @current_module, inspector_method) )
    (store[inspector_method] ||= {})[meth] = options
  end
end