Module: Sherlock

Extended by:
InstanceMethods
Defined in:
lib/sherlock/latex.rb,
lib/sherlock.rb,
lib/sherlock/version.rb,
lib/sherlock/collection/base.rb,
lib/sherlock/collection/files.rb,
lib/sherlock/collection/lines.rb,
lib/sherlock/collection/matched_line.rb

Overview

this is still very experimental

I want to be able to perform large LaTeX document analysis in an easy readable way e.g.

 Sherlock[:tex].inputs(:except => 'generated') 
   # => all lines with input directives, except the ones containing 'generated'
 Sherlock[:tex].macros(:emph)
   # => all lines containing the \emph{} macro

Maybe even environments could be analysed (e.g. figure and tabular)

Defined Under Namespace

Modules: Collection, InstanceMethods, LaTex, VERSION

Class Method Summary collapse

Methods included from InstanceMethods

collect_files_matching

Class Method Details

.included(base) ⇒ Object



18
19
20
# File 'lib/sherlock.rb', line 18

def included(base)
  base.__send__(:include, InstanceMethods)
end