Edit file File name : pureruby_rake.html Content :<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>pureruby.rake - RedCloth</title> <script type="text/javascript"> var rdoc_rel_prefix = "../../"; var index_rel_prefix = "../../"; </script> <script src="../../js/navigation.js" defer></script> <script src="../../js/search.js" defer></script> <script src="../../js/search_index.js" defer></script> <script src="../../js/searcher.js" defer></script> <script src="../../js/darkfish.js" defer></script> <link href="../../css/fonts.css" rel="stylesheet"> <link href="../../css/rdoc.css" rel="stylesheet"> <body id="top" role="document" class="file"> <nav role="navigation"> <div id="project-navigation"> <div id="home-section" role="region" title="Quick navigation" class="nav-section"> <h2> <a href="../../index.html" rel="home">Home</a> </h2> <div id="table-of-contents-navigation"> <a href="../../table_of_contents.html#pages">Pages</a> <a href="../../table_of_contents.html#classes">Classes</a> <a href="../../table_of_contents.html#methods">Methods</a> </div> </div> <div id="search-section" role="search" class="project-section initially-hidden"> <form action="#" method="get" accept-charset="utf-8"> <div id="search-field-wrapper"> <input id="search-field" role="combobox" aria-label="Search" aria-autocomplete="list" aria-controls="search-results" type="text" name="search" placeholder="Search" spellcheck="false" title="Type to search, Up and Down to navigate, Enter to load"> </div> <ul id="search-results" aria-label="Search Results" aria-busy="false" aria-expanded="false" aria-atomic="false" class="initially-hidden"></ul> </form> </div> </div> <div id="project-metadata"> <div id="fileindex-section" class="nav-section"> <h3>Pages</h3> <ul class="link-list"> <li><a href="../../README_rdoc.html">README</a> <li><a href="../../lib/tasks/pureruby_rake.html">pureruby.rake</a> </ul> </div> </div> </nav> <main role="main" aria-label="Page lib/tasks/pureruby.rake"> <p># Apparently this file gets loaded by Rails. Only want to define the pureruby # task in the context of <a href="../../RedCloth.html"><code>RedCloth</code></a> compilation (echoe loaded).</p> <p>if Gem::Specification.const_defined?(:PLATFORM_CROSS_TARGETS)</p> <pre class="ruby"><span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Specification</span><span class="ruby-operator">::</span><span class="ruby-constant">PLATFORM_CROSS_TARGETS</span> <span class="ruby-operator"><<</span> <span class="ruby-string">"pureruby"</span> <span class="ruby-identifier">task</span> <span class="ruby-string">'pureruby'</span> <span class="ruby-keyword">do</span> <span class="ruby-identifier">reset_target</span> <span class="ruby-string">'pureruby'</span> <span class="ruby-keyword">end</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">target</span> = <span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">detect</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">arg</span><span class="ruby-operator">|</span> <span class="ruby-comment"># Hack to get the platform set before the Rakefile evaluates</span> <span class="ruby-constant">Gem</span><span class="ruby-operator">::</span><span class="ruby-constant">Specification</span><span class="ruby-operator">::</span><span class="ruby-constant">PLATFORM_CROSS_TARGETS</span>.<span class="ruby-identifier">include?</span> <span class="ruby-identifier">arg</span> <span class="ruby-keyword">end</span> <span class="ruby-identifier">reset_target</span> <span class="ruby-identifier">target</span> <span class="ruby-keyword">end</span> </pre> <p>end</p> </main> <footer id="validator-badges" role="contentinfo"> <p><a href="https://validator.w3.org/check/referer">Validate</a> <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.3.1. <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>. </footer> Save