Module: RD

Defined in:
lib/rd/filter.rb,
lib/rd/list.rb,
lib/rd/tree.rb,
lib/rd/rdfmt.rb,
lib/rd/element.rb,
lib/rd/package.rb,
lib/rd/version.rb,
lib/rd/visitor.rb,
lib/rd/desclist.rb,
lib/rd/rbl-file.rb,
lib/rd/rbl-suite.rb,
lib/rd/rd-struct.rb,
lib/rd/rdvisitor.rb,
lib/rd/methodlist.rb,
lib/rd/rd2man-lib.rb,
lib/rd/rd2rdo-lib.rb,
lib/rd/rd2rmi-lib.rb,
lib/rd/head-filter.rb,
lib/rd/parser-util.rb,
lib/rd/rd2html-lib.rb,
lib/rd/search-file.rb,
lib/rd/loose-struct.rb,
lib/rd/block-element.rb,
lib/rd/inline-element.rb,
lib/rd/document-struct.rb,
lib/rd/labeled-element.rb,
lib/rd/rd2html-ext-lib.rb,
lib/rd/complex-list-item.rb,
lib/rd/rdblockparser.tab.rb,
lib/rd/rdinlineparser.tab.rb,
lib/rd/reference-resolver.rb,
lib/rd/output-format-visitor.rb

Overview

head-filter.rb

$Id: head-filter.rb,v 1.5 2003/10/30 12:12:33 rubikitch Exp rubikitch $ Copyright© 2003 Rubikitch Licence: Ruby’s License or GPL-2+

Defined Under Namespace

Modules: AutoLabel, ComplexListItem, InlineIncludable, LabelComposable, LabeledElement, ListItemComposable, MethodParse, NonterminalElement, ParserUtility, SearchFile, TerminalElement Classes: BlockElement, Code, DescList, DescListItem, DocumentElement, DocumentStructure, Element, ElementRelationship, Emphasis, EnumList, EnumListItem, Filter, Footnote, Headline, Include, Index, InlineElement, ItemList, ItemListItem, Keyboard, List, ListItem, MethodList, MethodListItem, NonterminalInline, OutputFormatVisitor, Part, RBLFile, RBLSuite, RD2HTMLExtVisitor, RD2HTMLVisitor, RD2MANVisitor, RD2RDOVisitor, RD2RMIVisitor, RDInlineParser, RDParser, RDTree, RDVisitor, Reference, ReferenceResolver, StringElement, TerminalInline, TextBlock, Tree, Var, Verb, Verbatim, Version, Visitor

Constant Summary collapse

RDElement =
Element
INCLUDE_FILTER =

Build-in Filter Simple inclusion

Filter.new(:target) do |inn, out|
  inn.each do |line|
    out.print(line)
  end
end
RD_FILTER =

Simple RD inclusion

Filter.new(:rd) do |inn, out|
  out.print("=begin\n")
  inn.each do |line|
    out.print(line)
  end
  out.print("\n=end\n")
end
EVAL_FILTER =

Eval ruby script “out.print” to output.

Filter.new(:target) do |inn, out|
  begin
    eval(inn.to_s)
  rescue
    out.print "!!Error occured when eval!!\n"
  end
end
PACKAGE_VERSION =
RD::VERSION
VERSION =
'0.6.38'
HEAD_FILTER =
Filter.new(:target) do |inn, out|
  $Visitor.head = inn.to_s
  out.print " "
end