Class: W3MGrep
- Inherits:
-
AbstractIndex
- Object
- AbstractIndex
- W3MGrep
- Includes:
- GrepInit
- Defined in:
- lib/langhelp/langhelp-base.rb
Overview
Information index class by grep with w3m
Constant Summary
Constants inherited from AbstractIndex
Constants included from LocalVariables
LocalVariables::ANCHOR_BEGIN, LocalVariables::ANCHOR_END
Constants included from KanjiConverter
Instance Attribute Summary
Attributes inherited from AbstractIndex
Instance Method Summary collapse
-
#to_e(io) ⇒ Object
Dump into e-script.
Methods included from GrepInit
Methods inherited from AbstractIndex
#init, #initialize, #output_title
Methods included from LocalVariables
Methods included from FilenameString
#abbreviate_filename, #abbreviate_filename!, #normalize_filename!
Methods included from KanjiConverter
Methods included from MkArray
Methods included from EmacsLispString
Constructor Details
This class inherits a constructor from AbstractIndex
Instance Method Details
#to_e(io) ⇒ Object
Dump into e-script
370 371 372 373 374 375 376 |
# File 'lib/langhelp/langhelp-base.rb', line 370 def to_e(io) # `#{conf[:HTML2TXT]} #{f.path}`.grep(@regexp).map{|line| src = abbreviate_filename(@src) kconv{ `w3m -dump #{@src.dump}` }.grep(@regexp).map{|line| io << %Q!# (lh-w3m #{lisp_dump_string(line.chomp)}#{SPACES}#{lisp_dump_string(src)})\n! } end |