Class: AbstractLink
- Inherits:
-
AbstractIndex
- Object
- AbstractIndex
- AbstractLink
- Defined in:
- lib/langhelp/langhelp-base.rb
Overview
Abstract class of a hyperlink to a file.
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
-
#func ⇒ Object
Hyperlink EmacsLisp function.
- #init(x = {}) ⇒ Object
-
#to_e(io) ⇒ Object
Dump into e-script.
Methods inherited from AbstractIndex
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
#func ⇒ Object
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 |