<!DOCTYPE html>

<html> <head> <meta content=“text/html; charset=UTF-8” http-equiv=“Content-Type”>

<title>class ReVIEW::MD2INAOBuilder - review-2.1.0 Documentation</title>

<link type=“text/css” media=“screen” href=“../rdoc.css” rel=“stylesheet”>

<script type=“text/javascript”>

var rdoc_rel_prefix = "../";

</script>

<script type=“text/javascript” charset=“utf-8” src=“../js/jquery.js”></script> <script type=“text/javascript” charset=“utf-8” src=“../js/navigation.js”></script> <script type=“text/javascript” charset=“utf-8” src=“../js/search_index.js”></script> <script type=“text/javascript” charset=“utf-8” src=“../js/search.js”></script> <script type=“text/javascript” charset=“utf-8” src=“../js/searcher.js”></script> <script type=“text/javascript” charset=“utf-8” src=“../js/darkfish.js”></script>

<body id=“top” class=“class”> <nav id=“metadata”>

<nav id="home-section" class="section">
<h3 class="section-header">
  <a href="../index.html">Home</a>
  <a href="../table_of_contents.html#classes">Classes</a>
  <a href="../table_of_contents.html#methods">Methods</a>
</h3>

</nav>

<nav id="search-section" class="section project-section" class="initially-hidden">
<form action="#" method="get" accept-charset="utf-8">
  <h3 class="section-header">
    <input type="text" name="search" placeholder="Search" id="search-field"
           title="Type to search, Up and Down to navigate, Enter to load">
  </h3>
</form>

<ul id="search-results" class="initially-hidden"></ul>

</nav>

<div id="file-metadata">
  <nav id="file-list-section" class="section">
<h3 class="section-header">Defined In</h3>
<ul>
  <li>lib/review/md2inaobuilder.rb
</ul>

</nav>

</div>

<div id="class-metadata">

  <nav id="parent-class-section" class="section">
<h3 class="section-header">Parent</h3>

<p class="link"><a href="MARKDOWNBuilder.html">ReVIEW::MARKDOWNBuilder</a>

</nav>

<!-- Method Quickref -->

<nav id=“method-list-section” class=“section”>

<h3 class="section-header">Methods</h3>

<ul class="link-list">

  <li ><a href="#method-i-cmd">#cmd</a>

  <li ><a href="#method-i-comment">#comment</a>

  <li ><a href="#method-i-compile_ruby">#compile_ruby</a>

  <li ><a href="#method-i-dd">#dd</a>

  <li ><a href="#method-i-dl_begin">#dl_begin</a>

  <li ><a href="#method-i-dl_end">#dl_end</a>

  <li ><a href="#method-i-dt">#dt</a>

  <li ><a href="#method-i-list_header">#list_header</a>

  <li ><a href="#method-i-paragraph">#paragraph</a>

</ul>

</nav>

</div>

<div id="project-metadata">
  <nav id="fileindex-section" class="section project-section">
<h3 class="section-header">Pages</h3>

<ul>

  <li class="file"><a href="../ChangeLog.html">ChangeLog</a>

</ul>

</nav>

  <nav id="classindex-section" class="section project-section">
<h3 class="section-header">Class and Module Index</h3>

<ul class="link-list">

  <li><a href="../EPUBMaker.html">EPUBMaker</a>

  <li><a href="../EPUBMaker/Content.html">EPUBMaker::Content</a>

  <li><a href="../EPUBMaker/EPUBCommon.html">EPUBMaker::EPUBCommon</a>

  <li><a href="../EPUBMaker/EPUBv2.html">EPUBMaker::EPUBv2</a>

  <li><a href="../EPUBMaker/EPUBv3.html">EPUBMaker::EPUBv3</a>

  <li><a href="../EPUBMaker/Producer.html">EPUBMaker::Producer</a>

  <li><a href="../Encoding.html">Encoding</a>

  <li><a href="../Hash.html">Hash</a>

  <li><a href="../LineInput.html">LineInput</a>

  <li><a href="../Object.html">Object</a>

  <li><a href="../ReVIEW.html">ReVIEW</a>

  <li><a href="../ReVIEW/ApplicationError.html">ReVIEW::ApplicationError</a>

  <li><a href="../ReVIEW/Book.html">ReVIEW::Book</a>

  <li><a href="../ReVIEW/Book/Base.html">ReVIEW::Book::Base</a>

  <li><a href="../ReVIEW/Book/BibpaperIndex.html">ReVIEW::Book::BibpaperIndex</a>

  <li><a href="../ReVIEW/Book/Chapter.html">ReVIEW::Book::Chapter</a>

  <li><a href="../ReVIEW/Book/ChapterIndex.html">ReVIEW::Book::ChapterIndex</a>

  <li><a href="../ReVIEW/Book/ColumnIndex.html">ReVIEW::Book::ColumnIndex</a>

  <li><a href="../ReVIEW/Book/Compilable.html">ReVIEW::Book::Compilable</a>

  <li><a href="../ReVIEW/Book/FootnoteIndex.html">ReVIEW::Book::FootnoteIndex</a>

  <li><a href="../ReVIEW/Book/HeadlineIndex.html">ReVIEW::Book::HeadlineIndex</a>

  <li><a href="../ReVIEW/Book/IconIndex.html">ReVIEW::Book::IconIndex</a>

  <li><a href="../ReVIEW/Book/ImageFinder.html">ReVIEW::Book::ImageFinder</a>

  <li><a href="../ReVIEW/Book/ImageIndex.html">ReVIEW::Book::ImageIndex</a>

  <li><a href="../ReVIEW/Book/ImageIndex/Item.html">ReVIEW::Book::ImageIndex::Item</a>

  <li><a href="../ReVIEW/Book/IndepImageIndex.html">ReVIEW::Book::IndepImageIndex</a>

  <li><a href="../ReVIEW/Book/IndepImageIndex/Item.html">ReVIEW::Book::IndepImageIndex::Item</a>

  <li><a href="../ReVIEW/Book/Index.html">ReVIEW::Book::Index</a>

  <li><a href="../ReVIEW/Book/ListIndex.html">ReVIEW::Book::ListIndex</a>

  <li><a href="../ReVIEW/Book/NumberlessImageIndex.html">ReVIEW::Book::NumberlessImageIndex</a>

  <li><a href="../ReVIEW/Book/NumberlessImageIndex/Item.html">ReVIEW::Book::NumberlessImageIndex::Item</a>

  <li><a href="../ReVIEW/Book/PageMetric.html">ReVIEW::Book::PageMetric</a>

  <li><a href="../ReVIEW/Book/Part.html">ReVIEW::Book::Part</a>

  <li><a href="../ReVIEW/Book/TableIndex.html">ReVIEW::Book::TableIndex</a>

  <li><a href="../ReVIEW/Book/Volume.html">ReVIEW::Book::Volume</a>

  <li><a href="../ReVIEW/Builder.html">ReVIEW::Builder</a>

  <li><a href="../ReVIEW/Catalog.html">ReVIEW::Catalog</a>

  <li><a href="../ReVIEW/CompileError.html">ReVIEW::CompileError</a>

  <li><a href="../ReVIEW/Compiler.html">ReVIEW::Compiler</a>

  <li><a href="../ReVIEW/Compiler/InlineSyntaxElement.html">ReVIEW::Compiler::InlineSyntaxElement</a>

  <li><a href="../ReVIEW/Compiler/SyntaxElement.html">ReVIEW::Compiler::SyntaxElement</a>

  <li><a href="../ReVIEW/ConfigError.html">ReVIEW::ConfigError</a>

  <li><a href="../ReVIEW/Configure.html">ReVIEW::Configure</a>

  <li><a href="../ReVIEW/Converter.html">ReVIEW::Converter</a>

  <li><a href="../ReVIEW/EPUBBuilder.html">ReVIEW::EPUBBuilder</a>

  <li><a href="../ReVIEW/EPUBMaker.html">ReVIEW::EPUBMaker</a>

  <li><a href="../ReVIEW/EPUBMaker/ReVIEWHeaderListener.html">ReVIEW::EPUBMaker::ReVIEWHeaderListener</a>

  <li><a href="../ReVIEW/EWBBuilder.html">ReVIEW::EWBBuilder</a>

  <li><a href="../ReVIEW/Error.html">ReVIEW::Error</a>

  <li><a href="../ReVIEW/ErrorUtils.html">ReVIEW::ErrorUtils</a>

  <li><a href="../ReVIEW/FileNotFound.html">ReVIEW::FileNotFound</a>

  <li><a href="../ReVIEW/HTMLBuilder.html">ReVIEW::HTMLBuilder</a>

  <li><a href="../ReVIEW/HTMLTOCPrinter.html">ReVIEW::HTMLTOCPrinter</a>

  <li><a href="../ReVIEW/HTMLToc.html">ReVIEW::HTMLToc</a>

  <li><a href="../ReVIEW/HTMLUtils.html">ReVIEW::HTMLUtils</a>

  <li><a href="../ReVIEW/I18n.html">ReVIEW::I18n</a>

  <li><a href="../ReVIEW/IDGXMLBuilder.html">ReVIEW::IDGXMLBuilder</a>

  <li><a href="../ReVIEW/KeyError.html">ReVIEW::KeyError</a>

  <li><a href="../ReVIEW/LATEXBuilder.html">ReVIEW::LATEXBuilder</a>

  <li><a href="../ReVIEW/LaTeXIndex.html">ReVIEW::LaTeXIndex</a>

  <li><a href="../ReVIEW/LaTeXUtils.html">ReVIEW::LaTeXUtils</a>

  <li><a href="../ReVIEW/Line.html">ReVIEW::Line</a>

  <li><a href="../ReVIEW/LineInput.html">ReVIEW::LineInput</a>

  <li><a href="../ReVIEW/Location.html">ReVIEW::Location</a>

  <li><a href="../ReVIEW/MARKDOWNBuilder.html">ReVIEW::MARKDOWNBuilder</a>

  <li><a href="../ReVIEW/MD2INAOBuilder.html">ReVIEW::MD2INAOBuilder</a>

  <li><a href="../ReVIEW/MakerHelper.html">ReVIEW::MakerHelper</a>

  <li><a href="../ReVIEW/PDFMaker.html">ReVIEW::PDFMaker</a>

  <li><a href="../ReVIEW/Preprocessor.html">ReVIEW::Preprocessor</a>

  <li><a href="../ReVIEW/Preprocessor/Directive.html">ReVIEW::Preprocessor::Directive</a>

  <li><a href="../ReVIEW/Preprocessor/Strip.html">ReVIEW::Preprocessor::Strip</a>

  <li><a href="../ReVIEW/Repository.html">ReVIEW::Repository</a>

  <li><a href="../ReVIEW/SecCounter.html">ReVIEW::SecCounter</a>

  <li><a href="../ReVIEW/SyntaxError.html">ReVIEW::SyntaxError</a>

  <li><a href="../ReVIEW/TEXTBuilder.html">ReVIEW::TEXTBuilder</a>

  <li><a href="../ReVIEW/TOCParser.html">ReVIEW::TOCParser</a>

  <li><a href="../ReVIEW/TOCParser/Chapter.html">ReVIEW::TOCParser::Chapter</a>

  <li><a href="../ReVIEW/TOCParser/List.html">ReVIEW::TOCParser::List</a>

  <li><a href="../ReVIEW/TOCParser/Node.html">ReVIEW::TOCParser::Node</a>

  <li><a href="../ReVIEW/TOCParser/Paragraph.html">ReVIEW::TOCParser::Paragraph</a>

  <li><a href="../ReVIEW/TOCParser/Section.html">ReVIEW::TOCParser::Section</a>

  <li><a href="../ReVIEW/TOCPrinter.html">ReVIEW::TOCPrinter</a>

  <li><a href="../ReVIEW/TOPBuilder.html">ReVIEW::TOPBuilder</a>

  <li><a href="../ReVIEW/Template.html">ReVIEW::Template</a>

  <li><a href="../ReVIEW/TextTOCPrinter.html">ReVIEW::TextTOCPrinter</a>

  <li><a href="../ReVIEW/TextUtils.html">ReVIEW::TextUtils</a>

  <li><a href="../ReVIEW/Unfold.html">ReVIEW::Unfold</a>

  <li><a href="../ReVIEW/WEBMaker.html">ReVIEW::WEBMaker</a>

  <li><a href="../ReVIEW/WEBTOCPrinter.html">ReVIEW::WEBTOCPrinter</a>

  <li><a href="../ReVIEW/WrongInput.html">ReVIEW::WrongInput</a>

  <li><a href="../ReVIEW/YAMLLoader.html">ReVIEW::YAMLLoader</a>

  <li><a href="../String.html">String</a>

</ul>

</nav>

</div>

</nav>

<div id=“documentation”>

<h1 class="class">class ReVIEW::MD2INAOBuilder</h1>

<div id="description" class="description">

</div><!-- description -->

<section id="5Buntitled-5D" class="documentation-section">

  <!-- Methods -->

   <section id="public-instance-5Buntitled-5D-method-details" class="method-section section">
    <h3 class="section-header">Public Instance Methods</h3>

    <div id="method-i-cmd" class="method-detail ">

      <div class="method-heading">
        <span class="method-name">cmd</pan><span
          class="method-args">(lines)</span>

        <span class="method-click-advice">click to toggle source</pan>

      </div>

      <div class="method-description">

        <div class="method-source-code" id="cmd-source">
          <pre><span class="ruby-comment"># File lib/review/md2inaobuilder.rb, line 21</span>

<span class=“ruby-keyword”>def</span> <span class=“ruby-identifier”>cmd</span>(<span class=“ruby-identifier”>lines</span>)

<span class="ruby-comment"># WEB+DB では使っていないらしいけど</span>
<span class="ruby-identifier">puts</span> <span class="ruby-string">&quot;!!! cmd&quot;</span>
<span class="ruby-identifier">lines</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span>
  <span class="ruby-identifier">puts</span> <span class="ruby-identifier">detab</span>(<span class="ruby-identifier">line</span>)
<span class="ruby-keyword">end</span>
<span class="ruby-identifier">puts</span> <span class="ruby-string">&quot;&quot;</span>

<span class=“ruby-keyword”>end</span></pre>

    </div><!-- cmd-source -->

  </div>

</div><!-- cmd-method -->

<div id="method-i-comment" class="method-detail ">

  <div class="method-heading">
    <span class="method-name">comment</span><span
      class="method-args">(lines, comment = nil)</span>

    <span class="method-click-advice">click to toggle source</span>

  </div>

  <div class="method-description">

    <div class="method-source-code" id="comment-source">
      <pre><span class="ruby-comment"># File lib/review/md2inaobuilder.rb, line 46</span>

<span class=“ruby-keyword”>def</span> <span class=“ruby-identifier”>comment</span>(<span class=“ruby-identifier”>lines</span>, <span class=“ruby-identifier”>comment</span> = <span class=“ruby-keyword”>nil</span>)

<span class="ruby-identifier">lines</span> <span class="ruby-operator">||=</span> []
<span class="ruby-identifier">lines</span>.<span class="ruby-identifier">unshift</span> <span class="ruby-identifier">comment</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">comment</span>.<span class="ruby-identifier">blank?</span>
<span class="ruby-identifier">str</span> = <span class="ruby-identifier">lines</span>.<span class="ruby-identifier">join</span>(<span class="ruby-string">&quot;\n&quot;</span>)
<span class="ruby-identifier">puts</span> <span class="ruby-string">&#39;&lt;span class=&quot;red&quot;&gt;&#39;</span>
<span class="ruby-identifier">puts</span> <span class="ruby-identifier">str</span>
<span class="ruby-identifier">puts</span> <span class="ruby-string">&#39;&lt;/span&gt;&#39;</span>

<span class=“ruby-keyword”>end</span></pre>

    </div><!-- comment-source -->

  </div>

</div><!-- comment-method -->

<div id="method-i-compile_ruby" class="method-detail ">

  <div class="method-heading">
    <span class="method-name">compile_ruby</span><span
      class="method-args">(base, ruby)</span>

    <span class="method-click-advice">click to toggle source</span>

  </div>

  <div class="method-description">

    <div class="method-source-code" id="compile_ruby-source">
      <pre><span class="ruby-comment"># File lib/review/md2inaobuilder.rb, line 55</span>

<span class=“ruby-keyword”>def</span> <span class=“ruby-identifier”>compile_ruby</span>(<span class=“ruby-identifier”>base</span>, <span class=“ruby-identifier”>ruby</span>)

<span class="ruby-keyword">if</span> <span class="ruby-identifier">base</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">==</span> <span class="ruby-value">1</span>
  <span class="ruby-node">%Q[&lt;span class=&#39;monoruby&#39;&gt;#{escape_html(base)}(#{escape_html(ruby)})&lt;/span&gt;]</span>
<span class="ruby-keyword">else</span>
  <span class="ruby-node">%Q[&lt;span class=&#39;groupruby&#39;&gt;#{escape_html(base)}(#{escape_html(ruby)})&lt;/span&gt;]</span>
<span class="ruby-keyword">end</span>

<span class=“ruby-keyword”>end</span></pre>

    </div><!-- compile_ruby-source -->

  </div>

</div><!-- compile_ruby-method -->

<div id="method-i-dd" class="method-detail ">

  <div class="method-heading">
    <span class="method-name">dd</span><span
      class="method-args">(lines)</span>

    <span class="method-click-advice">click to toggle source</span>

  </div>

  <div class="method-description">

    <div class="method-source-code" id="dd-source">
      <pre><span class="ruby-comment"># File lib/review/md2inaobuilder.rb, line 38</span>

<span class=“ruby-keyword”>def</span> <span class=“ruby-identifier”>dd</span>(<span class=“ruby-identifier”>lines</span>)

<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;&lt;dd&gt;#{lines.join}&lt;/dd&gt;&quot;</span>

<span class=“ruby-keyword”>end</span></pre>

    </div><!-- dd-source -->

  </div>

</div><!-- dd-method -->

<div id="method-i-dl_begin" class="method-detail ">

  <div class="method-heading">
    <span class="method-name">dl_begin</span><span
      class="method-args">()</span>

    <span class="method-click-advice">click to toggle source</span>

  </div>

  <div class="method-description">

    <div class="method-source-code" id="dl_begin-source">
      <pre><span class="ruby-comment"># File lib/review/md2inaobuilder.rb, line 30</span>

<span class=“ruby-keyword”>def</span> <span class=“ruby-identifier”>dl_begin</span>

<span class="ruby-identifier">puts</span> <span class="ruby-string">&#39;&lt;dl&gt;&#39;</span>

<span class=“ruby-keyword”>end</span></pre>

    </div><!-- dl_begin-source -->

  </div>

</div><!-- dl_begin-method -->

<div id="method-i-dl_end" class="method-detail ">

  <div class="method-heading">
    <span class="method-name">dl_end</span><span
      class="method-args">()</span>

    <span class="method-click-advice">click to toggle source</span>

  </div>

  <div class="method-description">

    <div class="method-source-code" id="dl_end-source">
      <pre><span class="ruby-comment"># File lib/review/md2inaobuilder.rb, line 42</span>

<span class=“ruby-keyword”>def</span> <span class=“ruby-identifier”>dl_end</span>

<span class="ruby-identifier">puts</span> <span class="ruby-string">&#39;&lt;/dl&gt;&#39;</span>

<span class=“ruby-keyword”>end</span></pre>

    </div><!-- dl_end-source -->

  </div>

</div><!-- dl_end-method -->

<div id="method-i-dt" class="method-detail ">

  <div class="method-heading">
    <span class="method-name">dt</span><span
      class="method-args">(line)</span>

    <span class="method-click-advice">click to toggle source</span>

  </div>

  <div class="method-description">

    <div class="method-source-code" id="dt-source">
      <pre><span class="ruby-comment"># File lib/review/md2inaobuilder.rb, line 34</span>

<span class=“ruby-keyword”>def</span> <span class=“ruby-identifier”>dt</span>(<span class=“ruby-identifier”>line</span>)

<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;&lt;dt&gt;#{line}&lt;/dt&gt;&quot;</span>

<span class=“ruby-keyword”>end</span></pre>

    </div><!-- dt-source -->

  </div>

</div><!-- dt-method -->

<div id="method-i-list_header" class="method-detail ">

  <div class="method-heading">
    <span class="method-name">list_header</span><span
      class="method-args">(id, caption, lang)</span>

    <span class="method-click-advice">click to toggle source</span>

  </div>

  <div class="method-description">

    <div class="method-source-code" id="list_header-source">
      <pre><span class="ruby-comment"># File lib/review/md2inaobuilder.rb, line 15</span>

<span class=“ruby-keyword”>def</span> <span class=“ruby-identifier”>list_header</span>(<span class=“ruby-identifier”>id</span>, <span class=“ruby-identifier”>caption</span>, <span class=“ruby-identifier”>lang</span>)

<span class="ruby-identifier">lang</span> <span class="ruby-operator">||=</span> <span class="ruby-string">&quot;&quot;</span>
<span class="ruby-identifier">puts</span> <span class="ruby-node">&quot;```#{lang}&quot;</span>
<span class="ruby-identifier">print</span> <span class="ruby-node">%Q[●リスト#{@chapter.list(id).number}::#{compile_inline(caption)}\n\n]</span>

<span class=“ruby-keyword”>end</span></pre>

    </div><!-- list_header-source -->

  </div>

</div><!-- list_header-method -->

<div id="method-i-paragraph" class="method-detail ">

  <div class="method-heading">
    <span class="method-name">paragraph</span><span
      class="method-args">(lines)</span>

    <span class="method-click-advice">click to toggle source</span>

  </div>

  <div class="method-description">

    <div class="method-source-code" id="paragraph-source">
      <pre><span class="ruby-comment"># File lib/review/md2inaobuilder.rb, line 10</span>

<span class=“ruby-keyword”>def</span> <span class=“ruby-identifier”>paragraph</span>(<span class=“ruby-identifier”>lines</span>)

<span class="ruby-identifier">puts</span> <span class="ruby-string">&quot; &quot;</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">lines</span>.<span class="ruby-identifier">join</span>
<span class="ruby-identifier">puts</span> <span class="ruby-string">&quot;\n&quot;</span>

<span class=“ruby-keyword”>end</span></pre>

        </div><!-- paragraph-source -->

      </div>

    </div><!-- paragraph-method -->

  </section><!-- public-instance-method-details -->

</section><!-- 5Buntitled-5D -->

</div><!– documentation –>

<footer id=“validator-badges”>

<p><a href="http://validator.w3.org/check/referer">[Validate]</a>
<p>Generated by <a href="https://github.com/rdoc/rdoc">RDoc</a> 4.0.0.
<p>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish Rdoc Generator</a> 3.

</footer>