Module: Manpage::ManpageIndex
- Defined in:
- lib/langhelp/langhelp-base.rb
Overview
manipulate single manpage
Defined Under Namespace
Classes: LINK
Instance Method Summary collapse
Instance Method Details
#links ⇒ Object
291 292 293 294 295 296 297 |
# File 'lib/langhelp/langhelp-base.rb', line 291 def links man_contents()[1..-2].find_all{|line| line =~ @default_regexp or (@additional_regexp and line =~ @additional_regexp) }.map{|line| LINK.new(line.chomp) } end |
#man_contents ⇒ Object
285 286 287 288 |
# File 'lib/langhelp/langhelp-base.rb', line 285 def man_contents ENV['PAGER'] = 'cat' kconv{ `man #{@section} #{@name} 2> /dev/null`.strip } end |
#to_e(io) ⇒ Object
299 300 301 302 303 |
# File 'lib/langhelp/langhelp-base.rb', line 299 def to_e(io) links.each{|link| io << %Q!# (lh-man* #{lisp_dump_string(link.line)}\t"#{@section} #{@name}")\n! } end |