Class: AbstractLink

Inherits:
AbstractIndex show all
Defined in:
lib/langhelp/langhelp-base.rb

Overview

Abstract class of a hyperlink to a file.

Direct Known Subclasses

ViewLink, W3MLink

Constant Summary

Constants inherited from AbstractIndex

AbstractIndex::SPACES

Constants included from LocalVariables

LocalVariables::ANCHOR_BEGIN, LocalVariables::ANCHOR_END

Constants included from KanjiConverter

KanjiConverter::KCONVERTERS

Instance Attribute Summary

Attributes inherited from AbstractIndex

#arg1, #conf, #title

Instance Method Summary collapse

Methods inherited from AbstractIndex

#initialize, #output_title

Methods included from LocalVariables

#insert_local_variables

Methods included from FilenameString

#abbreviate_filename, #abbreviate_filename!, #normalize_filename!

Methods included from KanjiConverter

#encoding, #kconv

Methods included from MkArray

#mkarray

Methods included from EmacsLispString

#lisp_dump_string

Constructor Details

This class inherits a constructor from AbstractIndex

Instance Method Details

#funcObject

Hyperlink EmacsLisp function. ie. lh-xxx



191
192
# File 'lib/langhelp/langhelp-base.rb', line 191

def func
end

#init(x = {}) ⇒ Object



185
186
187
188
# File 'lib/langhelp/langhelp-base.rb', line 185

def init(x={})
  @src = arg1
  @label = x[:label]
end

#to_e(io) ⇒ Object

Dump into e-script



195
196
197
198
# File 'lib/langhelp/langhelp-base.rb', line 195

def to_e(io)
  label = @label ? (@label + SPACES) : ""
  io << %Q!# #{label}(#{func} nil #{lisp_dump_string(@src)})\n!
end