Class: HTML::SingleHTML

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

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 collapse

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 Attribute Details

#tagify_htmlObject (readonly)

Returns the value of attribute tagify_html.



561
562
563
# File 'lib/langhelp/langhelp-base.rb', line 561

def tagify_html
  @tagify_html
end

Instance Method Details

#==(other) ⇒ Object



574
575
576
577
# File 'lib/langhelp/langhelp-base.rb', line 574

def ==(other)
  return false if self.class != other.class
  @tagify_html == other.tagify_html
end

#init(x = {}) ⇒ Object



556
557
558
559
560
# File 'lib/langhelp/langhelp-base.rb', line 556

def init(x={})
  @tagify_html = x[:tagify_html]
  normalize_filename! @tagify_html
  @converter = Converter.new x
end

#tagifyObject



563
564
565
# File 'lib/langhelp/langhelp-base.rb', line 563

def tagify
  @converter.tagify
end

#to_e(out) ⇒ Object



567
568
569
570
571
572
# File 'lib/langhelp/langhelp-base.rb', line 567

def to_e(out)
  tagify
  @converter.tags.each do |tag|
    out << %Q!# #{tag.label}#{SPACES}(lh-w3m nil "#{tag.url}")\n!
  end
end