Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

update rdoc

  • Loading branch information...
commit c57f55c259d3ffca41cd96ec98b64ea31fbb6c30 1 parent aaca0cc
Scott Taylor authored
14 doc/classes/Slugify.html
View
@@ -53,17 +53,9 @@ <h1 class='name'>
<h2>Methods</h2>
<h3>public class</h3>
<ol>
- <li><a href="#M000001">included</a></li>
+ <li><a href="#M000001">append_features</a></li>
</ol>
</div>
- <div id='context'>
- <div id='includes'>
- <h2>Included modules</h2>
- <ol>
- <li><a href="Slugify/InstanceMethods.html">InstanceMethods</a></li>
- </ol>
- </div>
- </div>
<div id='section'>
<div id='class-list'>
<h2>Classes and Modules</h2>
@@ -89,14 +81,14 @@ <h1 class='name'>
<div class='method public-class' id='method-M000001'>
<a name='M000001'></a>
<div class='synopsis'>
- <span class='name'>included</span>
+ <span class='name'>append_features</span>
<span class='arguments'>(other)</span>
</div>
<div class='source'>
<a class='source-toggle' href='#' onclick="toggleCode('M000001-source'); return false">
[show source]
</a>
- <pre id='M000001-source'> <span class="ruby-comment cmt"># File lib/slugify.rb, line 7</span>&#x000A; 7: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">included</span>(<span class="ruby-identifier">other</span>)&#x000A; 8: <span class="ruby-identifier">other</span>.<span class="ruby-identifier">extend</span> <span class="ruby-constant">ClassMethods</span>&#x000A; 9: <span class="ruby-identifier">other</span>.<span class="ruby-identifier">class_eval</span> <span class="ruby-keyword kw">do</span>&#x000A;10: <span class="ruby-identifier">include</span> <span class="ruby-constant">InstanceMethods</span>&#x000A;11: <span class="ruby-keyword kw">end</span>&#x000A;12: <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000001-source'> <span class="ruby-comment cmt"># File lib/slugify.rb, line 7</span>&#x000A;7: <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">append_features</span>(<span class="ruby-identifier">other</span>)&#x000A;8: <span class="ruby-identifier">other</span>.<span class="ruby-identifier">extend</span> <span class="ruby-constant">ClassMethods</span>&#x000A;9: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
10 doc/classes/Slugify/ClassMethods.html
View
@@ -45,6 +45,14 @@ <h1 class='name'>
<li><a href="#M000002">slugify</a></li>
</ol>
</div>
+ <div id='context'>
+ <div id='includes'>
+ <h2>Included modules</h2>
+ <ol>
+ <li><a href="InstanceMethods.html">InstanceMethods</a></li>
+ </ol>
+ </div>
+ </div>
<div id='section'>
<div id='methods'>
<h2>Public instance methods</h2>
@@ -58,7 +66,7 @@ <h1 class='name'>
<a class='source-toggle' href='#' onclick="toggleCode('M000002-source'); return false">
[show source]
</a>
- <pre id='M000002-source'> <span class="ruby-comment cmt"># File lib/slugify.rb, line 15</span>&#x000A;15: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">slugify</span>(<span class="ruby-identifier">source_slug_column</span>, <span class="ruby-identifier">options_given</span>={})&#x000A;16: <span class="ruby-identifier">before_save</span> <span class="ruby-identifier">:generate_slug</span>&#x000A;17: &#x000A;18: <span class="ruby-identifier">options_given</span>.<span class="ruby-identifier">symbolize_keys!</span>&#x000A;19: &#x000A;20: <span class="ruby-identifier">options_given</span>.<span class="ruby-identifier">assert_valid_keys</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">default_slug_options</span>.<span class="ruby-identifier">keys</span>)&#x000A;21: &#x000A;22: <span class="ruby-identifier">options</span> = <span class="ruby-identifier">default_slug_options</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">options_given</span>)&#x000A;23: <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:scope</span>] = [<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:scope</span>]] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:scope</span>].<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:[]</span>)&#x000A;24: &#x000A;25: <span class="ruby-identifier">class_inheritable_accessor</span> <span class="ruby-identifier">:source_slug_column</span>&#x000A;26: <span class="ruby-identifier">class_inheritable_accessor</span> <span class="ruby-identifier">:slug_column</span>&#x000A;27: <span class="ruby-identifier">class_inheritable_accessor</span> <span class="ruby-identifier">:slug_scope</span>&#x000A;28: <span class="ruby-identifier">class_inheritable_accessor</span> <span class="ruby-identifier">:slugify_when</span>&#x000A;29: &#x000A;30: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">source_slug_column</span> = <span class="ruby-identifier">source_slug_column</span>&#x000A;31: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">slug_column</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:slug_column</span>]&#x000A;32: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">slug_scope</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:scope</span>]&#x000A;33: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">slugify_when</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:when</span>]&#x000A;34: <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000002-source'> <span class="ruby-comment cmt"># File lib/slugify.rb, line 12</span>&#x000A;12: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">slugify</span>(<span class="ruby-identifier">source_slug_column</span>, <span class="ruby-identifier">options_given</span>={})&#x000A;13: <span class="ruby-identifier">before_save</span> <span class="ruby-identifier">:generate_slug</span>&#x000A;14: &#x000A;15: <span class="ruby-identifier">options_given</span>.<span class="ruby-identifier">symbolize_keys!</span>&#x000A;16: &#x000A;17: <span class="ruby-identifier">options_given</span>.<span class="ruby-identifier">assert_valid_keys</span>(<span class="ruby-operator">*</span><span class="ruby-identifier">default_slug_options</span>.<span class="ruby-identifier">keys</span>)&#x000A;18: &#x000A;19: <span class="ruby-identifier">options</span> = <span class="ruby-identifier">default_slug_options</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">options_given</span>)&#x000A;20: <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:scope</span>] = [<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:scope</span>]] <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:scope</span>].<span class="ruby-identifier">respond_to?</span>(<span class="ruby-identifier">:[]</span>)&#x000A;21: &#x000A;22: <span class="ruby-identifier">class_inheritable_accessor</span> <span class="ruby-identifier">:source_slug_column</span>&#x000A;23: <span class="ruby-identifier">class_inheritable_accessor</span> <span class="ruby-identifier">:slug_column</span>&#x000A;24: <span class="ruby-identifier">class_inheritable_accessor</span> <span class="ruby-identifier">:slug_scope</span>&#x000A;25: <span class="ruby-identifier">class_inheritable_accessor</span> <span class="ruby-identifier">:slugify_when</span>&#x000A;26: &#x000A;27: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">source_slug_column</span> = <span class="ruby-identifier">source_slug_column</span>&#x000A;28: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">slug_column</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:slug_column</span>]&#x000A;29: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">slug_scope</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:scope</span>]&#x000A;30: <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">slugify_when</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:when</span>]&#x000A;31: &#x000A;32: <span class="ruby-identifier">include</span> <span class="ruby-constant">InstanceMethods</span>&#x000A;33: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
18 doc/classes/Slugify/InstanceMethods.html
View
@@ -44,6 +44,7 @@ <h1 class='name'>
<ol>
<li><a href="#M000003">generate_slug</a></li>
<li><a href="#M000004">regenerate_slug</a></li>
+ <li><a href="#M000005">to_param</a></li>
</ol>
</div>
<div id='section'>
@@ -59,7 +60,7 @@ <h1 class='name'>
<a class='source-toggle' href='#' onclick="toggleCode('M000003-source'); return false">
[show source]
</a>
- <pre id='M000003-source'> <span class="ruby-comment cmt"># File lib/slugify.rb, line 48</span>&#x000A;48: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_slug</span>&#x000A;49: <span class="ruby-constant">Slugify</span><span class="ruby-operator">::</span><span class="ruby-constant">SlugGenerator</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-keyword kw">self</span>)&#x000A;50: <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000003-source'> <span class="ruby-comment cmt"># File lib/slugify.rb, line 47</span>&#x000A;47: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_slug</span>&#x000A;48: <span class="ruby-constant">Slugify</span><span class="ruby-operator">::</span><span class="ruby-constant">SlugGenerator</span>.<span class="ruby-identifier">generate</span>(<span class="ruby-keyword kw">self</span>)&#x000A;49: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
<div class='method public-instance' id='method-M000004'>
@@ -72,7 +73,20 @@ <h1 class='name'>
<a class='source-toggle' href='#' onclick="toggleCode('M000004-source'); return false">
[show source]
</a>
- <pre id='M000004-source'> <span class="ruby-comment cmt"># File lib/slugify.rb, line 52</span>&#x000A;52: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">regenerate_slug</span>&#x000A;53: <span class="ruby-constant">Slugify</span><span class="ruby-operator">::</span><span class="ruby-constant">SlugGenerator</span>.<span class="ruby-identifier">regenerate</span>(<span class="ruby-keyword kw">self</span>)&#x000A;54: <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000004-source'> <span class="ruby-comment cmt"># File lib/slugify.rb, line 51</span>&#x000A;51: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">regenerate_slug</span>&#x000A;52: <span class="ruby-constant">Slugify</span><span class="ruby-operator">::</span><span class="ruby-constant">SlugGenerator</span>.<span class="ruby-identifier">regenerate</span>(<span class="ruby-keyword kw">self</span>)&#x000A;53: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+ </div>
+ <div class='method public-instance' id='method-M000005'>
+ <a name='M000005'></a>
+ <div class='synopsis'>
+ <span class='name'>to_param</span>
+ <span class='arguments'>()</span>
+ </div>
+ <div class='source'>
+ <a class='source-toggle' href='#' onclick="toggleCode('M000005-source'); return false">
+ [show source]
+ </a>
+ <pre id='M000005-source'> <span class="ruby-comment cmt"># File lib/slugify.rb, line 55</span>&#x000A;55: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_param</span>&#x000A;56: <span class="ruby-identifier">read_attribute</span>(<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">class</span>.<span class="ruby-identifier">slug_column</span>)&#x000A;57: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
90 doc/classes/Slugify/SlugGenerator.html
View
@@ -46,18 +46,18 @@ <h1 class='name'>
<h2>Methods</h2>
<h3>public class</h3>
<ol>
- <li><a href="#M000006">generate</a></li>
- <li><a href="#M000005">generate_slug</a></li>
- <li><a href="#M000008">new</a></li>
- <li><a href="#M000007">regenerate</a></li>
+ <li><a href="#M000007">generate</a></li>
+ <li><a href="#M000006">generate_slug</a></li>
+ <li><a href="#M000009">new</a></li>
+ <li><a href="#M000008">regenerate</a></li>
</ol>
<h3>public instance</h3>
<ol>
- <li><a href="#M000009">generate_slug</a></li>
- <li><a href="#M000012">generate_slug?</a></li>
- <li><a href="#M000011">generate_slug_without_checking_proc</a></li>
- <li><a href="#M000010">regenerate_slug</a></li>
- <li><a href="#M000013">slug_exists?</a></li>
+ <li><a href="#M000010">generate_slug</a></li>
+ <li><a href="#M000013">generate_slug?</a></li>
+ <li><a href="#M000012">generate_slug_without_checking_proc</a></li>
+ <li><a href="#M000011">regenerate_slug</a></li>
+ <li><a href="#M000014">slug_exists?</a></li>
</ol>
</div>
<div id='section'>
@@ -85,122 +85,122 @@ <h1 class='name'>
</div>
<div id='methods'>
<h2>Public class methods</h2>
- <div class='method public-class' id='method-M000006'>
- <a name='M000006'></a>
+ <div class='method public-class' id='method-M000007'>
+ <a name='M000007'></a>
<div class='synopsis'>
<span class='name'>generate</span>
<span class='arguments'>(obj)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000006-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000007-source'); return false">
[show source]
</a>
- <pre id='M000006-source'> <span class="ruby-comment cmt"># File lib/slugify/slug_generator.rb, line 21</span>&#x000A;21: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate</span>(<span class="ruby-identifier">obj</span>)&#x000A;22: <span class="ruby-identifier">new</span>(<span class="ruby-identifier">obj</span>).<span class="ruby-identifier">generate_slug</span>&#x000A;23: <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000007-source'> <span class="ruby-comment cmt"># File lib/slugify/slug_generator.rb, line 21</span>&#x000A;21: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate</span>(<span class="ruby-identifier">obj</span>)&#x000A;22: <span class="ruby-identifier">new</span>(<span class="ruby-identifier">obj</span>).<span class="ruby-identifier">generate_slug</span>&#x000A;23: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-class' id='method-M000005'>
- <a name='M000005'></a>
+ <div class='method public-class' id='method-M000006'>
+ <a name='M000006'></a>
<div class='synopsis'>
<span class='name'>generate_slug</span>
<span class='arguments'>(str)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000005-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000006-source'); return false">
[show source]
</a>
- <pre id='M000005-source'> <span class="ruby-comment cmt"># File lib/slugify/slug_generator.rb, line 8</span>&#x000A; 8: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_slug</span>(<span class="ruby-identifier">str</span>)&#x000A; 9: <span class="ruby-identifier">str</span> = <span class="ruby-constant">Iconv</span>.<span class="ruby-identifier">iconv</span>(<span class="ruby-constant">CHAR_ENCODING_TRANSLATION_TO</span>, <span class="ruby-constant">CHAR_ENCODING_TRANSLATION_FROM</span>, <span class="ruby-identifier">str</span>).<span class="ruby-identifier">to_s</span>&#x000A;10: <span class="ruby-identifier">str</span>.<span class="ruby-identifier">downcase!</span>&#x000A;11: &#x000A;12: <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span> <span class="ruby-regexp re">/&lt;.*?&gt;/</span>, <span class="ruby-value str">''</span> <span class="ruby-comment cmt"># strip HTML</span>&#x000A;13: <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span> <span class="ruby-regexp re">/[\'\&quot;\#\$\,\.\!\?\%\@\(\)]+/</span>, <span class="ruby-value str">''</span>&#x000A;14: <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span> <span class="ruby-regexp re">/\&amp;/</span>, <span class="ruby-value str">'and'</span>&#x000A;15: <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span> <span class="ruby-regexp re">/\_/</span>, <span class="ruby-value str">'-'</span>&#x000A;16: <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span> <span class="ruby-regexp re">/[\W^-_]+/</span>, <span class="ruby-value str">'-'</span>&#x000A;17: <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span> <span class="ruby-regexp re">/(\-)+/</span>, <span class="ruby-value str">'-'</span>&#x000A;18: <span class="ruby-identifier">str</span>&#x000A;19: <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000006-source'> <span class="ruby-comment cmt"># File lib/slugify/slug_generator.rb, line 8</span>&#x000A; 8: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_slug</span>(<span class="ruby-identifier">str</span>)&#x000A; 9: <span class="ruby-identifier">str</span> = <span class="ruby-constant">Iconv</span>.<span class="ruby-identifier">iconv</span>(<span class="ruby-constant">CHAR_ENCODING_TRANSLATION_TO</span>, <span class="ruby-constant">CHAR_ENCODING_TRANSLATION_FROM</span>, <span class="ruby-identifier">str</span>).<span class="ruby-identifier">to_s</span>&#x000A;10: <span class="ruby-identifier">str</span>.<span class="ruby-identifier">downcase!</span>&#x000A;11: &#x000A;12: <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span> <span class="ruby-regexp re">/&lt;.*?&gt;/</span>, <span class="ruby-value str">''</span> <span class="ruby-comment cmt"># strip HTML</span>&#x000A;13: <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span> <span class="ruby-regexp re">/[\'\&quot;\#\$\,\.\!\?\%\@\(\)]+/</span>, <span class="ruby-value str">''</span>&#x000A;14: <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span> <span class="ruby-regexp re">/\&amp;/</span>, <span class="ruby-value str">'and'</span>&#x000A;15: <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span> <span class="ruby-regexp re">/\_/</span>, <span class="ruby-value str">'-'</span>&#x000A;16: <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span> <span class="ruby-regexp re">/[\W^-_]+/</span>, <span class="ruby-value str">'-'</span>&#x000A;17: <span class="ruby-identifier">str</span>.<span class="ruby-identifier">gsub!</span> <span class="ruby-regexp re">/(\-)+/</span>, <span class="ruby-value str">'-'</span>&#x000A;18: <span class="ruby-identifier">str</span>&#x000A;19: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-class' id='method-M000008'>
- <a name='M000008'></a>
+ <div class='method public-class' id='method-M000009'>
+ <a name='M000009'></a>
<div class='synopsis'>
<span class='name'>new</span>
<span class='arguments'>(obj)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000008-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000009-source'); return false">
[show source]
</a>
- <pre id='M000008-source'> <span class="ruby-comment cmt"># File lib/slugify/slug_generator.rb, line 30</span>&#x000A;30: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">obj</span>)&#x000A;31: <span class="ruby-ivar">@obj</span> = <span class="ruby-identifier">obj</span>&#x000A;32: <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000009-source'> <span class="ruby-comment cmt"># File lib/slugify/slug_generator.rb, line 30</span>&#x000A;30: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">obj</span>)&#x000A;31: <span class="ruby-ivar">@obj</span> = <span class="ruby-identifier">obj</span>&#x000A;32: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-class' id='method-M000007'>
- <a name='M000007'></a>
+ <div class='method public-class' id='method-M000008'>
+ <a name='M000008'></a>
<div class='synopsis'>
<span class='name'>regenerate</span>
<span class='arguments'>(obj)</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000007-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000008-source'); return false">
[show source]
</a>
- <pre id='M000007-source'> <span class="ruby-comment cmt"># File lib/slugify/slug_generator.rb, line 25</span>&#x000A;25: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">regenerate</span>(<span class="ruby-identifier">obj</span>)&#x000A;26: <span class="ruby-identifier">new</span>(<span class="ruby-identifier">obj</span>).<span class="ruby-identifier">regenerate_slug</span>&#x000A;27: <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000008-source'> <span class="ruby-comment cmt"># File lib/slugify/slug_generator.rb, line 25</span>&#x000A;25: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">regenerate</span>(<span class="ruby-identifier">obj</span>)&#x000A;26: <span class="ruby-identifier">new</span>(<span class="ruby-identifier">obj</span>).<span class="ruby-identifier">regenerate_slug</span>&#x000A;27: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
<h2>Public instance methods</h2>
- <div class='method public-instance' id='method-M000009'>
- <a name='M000009'></a>
+ <div class='method public-instance' id='method-M000010'>
+ <a name='M000010'></a>
<div class='synopsis'>
<span class='name'>generate_slug</span>
<span class='arguments'>()</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000009-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000010-source'); return false">
[show source]
</a>
- <pre id='M000009-source'> <span class="ruby-comment cmt"># File lib/slugify/slug_generator.rb, line 34</span>&#x000A;34: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_slug</span>&#x000A;35: <span class="ruby-identifier">generate_slug_without_checking_proc</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">generate_slug?</span>&#x000A;36: <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000010-source'> <span class="ruby-comment cmt"># File lib/slugify/slug_generator.rb, line 34</span>&#x000A;34: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_slug</span>&#x000A;35: <span class="ruby-identifier">generate_slug_without_checking_proc</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">generate_slug?</span>&#x000A;36: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-instance' id='method-M000012'>
- <a name='M000012'></a>
+ <div class='method public-instance' id='method-M000013'>
+ <a name='M000013'></a>
<div class='synopsis'>
<span class='name'>generate_slug?</span>
<span class='arguments'>()</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000012-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000013-source'); return false">
[show source]
</a>
- <pre id='M000012-source'> <span class="ruby-comment cmt"># File lib/slugify/slug_generator.rb, line 56</span>&#x000A;56: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_slug?</span>&#x000A;57: <span class="ruby-identifier">slugify_proc</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">slugify_proc</span>.<span class="ruby-identifier">call</span>(<span class="ruby-ivar">@obj</span>) <span class="ruby-operator">?</span> <span class="ruby-keyword kw">true</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">false</span>&#x000A;58: <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000013-source'> <span class="ruby-comment cmt"># File lib/slugify/slug_generator.rb, line 56</span>&#x000A;56: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_slug?</span>&#x000A;57: <span class="ruby-identifier">slugify_proc</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">slugify_proc</span>.<span class="ruby-identifier">call</span>(<span class="ruby-ivar">@obj</span>) <span class="ruby-operator">?</span> <span class="ruby-keyword kw">true</span> <span class="ruby-operator">:</span> <span class="ruby-keyword kw">false</span>&#x000A;58: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-instance' id='method-M000011'>
- <a name='M000011'></a>
+ <div class='method public-instance' id='method-M000012'>
+ <a name='M000012'></a>
<div class='synopsis'>
<span class='name'>generate_slug_without_checking_proc</span>
<span class='arguments'>()</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000011-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000012-source'); return false">
[show source]
</a>
- <pre id='M000011-source'> <span class="ruby-comment cmt"># File lib/slugify/slug_generator.rb, line 42</span>&#x000A;42: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_slug_without_checking_proc</span>&#x000A;43: <span class="ruby-identifier">slug_value</span> = <span class="ruby-identifier">source_slug_value</span>&#x000A;44: &#x000A;45: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">slug_value</span>.<span class="ruby-identifier">blank?</span>&#x000A;46: <span class="ruby-identifier">escaped_string</span> = <span class="ruby-identifier">cleanup_slug</span>(<span class="ruby-identifier">slug_value</span>.<span class="ruby-identifier">dup</span>)&#x000A;47: &#x000A;48: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">escaped_string</span>.<span class="ruby-identifier">blank?</span>&#x000A;49: <span class="ruby-identifier">set_unique_slug_value</span>(<span class="ruby-identifier">escaped_string</span>)&#x000A;50: <span class="ruby-keyword kw">else</span>&#x000A;51: <span class="ruby-identifier">set_unique_slug_value</span>(<span class="ruby-constant">DEFAULT_SLUG_COLUMN</span>)&#x000A;52: <span class="ruby-keyword kw">end</span>&#x000A;53: <span class="ruby-keyword kw">end</span>&#x000A;54: <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000012-source'> <span class="ruby-comment cmt"># File lib/slugify/slug_generator.rb, line 42</span>&#x000A;42: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">generate_slug_without_checking_proc</span>&#x000A;43: <span class="ruby-identifier">slug_value</span> = <span class="ruby-identifier">source_slug_value</span>&#x000A;44: &#x000A;45: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">slug_value</span>.<span class="ruby-identifier">blank?</span>&#x000A;46: <span class="ruby-identifier">escaped_string</span> = <span class="ruby-identifier">cleanup_slug</span>(<span class="ruby-identifier">slug_value</span>.<span class="ruby-identifier">dup</span>)&#x000A;47: &#x000A;48: <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">escaped_string</span>.<span class="ruby-identifier">blank?</span>&#x000A;49: <span class="ruby-identifier">set_unique_slug_value</span>(<span class="ruby-identifier">escaped_string</span>)&#x000A;50: <span class="ruby-keyword kw">else</span>&#x000A;51: <span class="ruby-identifier">set_unique_slug_value</span>(<span class="ruby-constant">DEFAULT_SLUG_COLUMN</span>)&#x000A;52: <span class="ruby-keyword kw">end</span>&#x000A;53: <span class="ruby-keyword kw">end</span>&#x000A;54: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-instance' id='method-M000010'>
- <a name='M000010'></a>
+ <div class='method public-instance' id='method-M000011'>
+ <a name='M000011'></a>
<div class='synopsis'>
<span class='name'>regenerate_slug</span>
<span class='arguments'>()</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000010-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000011-source'); return false">
[show source]
</a>
- <pre id='M000010-source'> <span class="ruby-comment cmt"># File lib/slugify/slug_generator.rb, line 38</span>&#x000A;38: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">regenerate_slug</span>&#x000A;39: <span class="ruby-identifier">generate_slug_without_checking_proc</span>&#x000A;40: <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000011-source'> <span class="ruby-comment cmt"># File lib/slugify/slug_generator.rb, line 38</span>&#x000A;38: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">regenerate_slug</span>&#x000A;39: <span class="ruby-identifier">generate_slug_without_checking_proc</span>&#x000A;40: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
- <div class='method public-instance' id='method-M000013'>
- <a name='M000013'></a>
+ <div class='method public-instance' id='method-M000014'>
+ <a name='M000014'></a>
<div class='synopsis'>
<span class='name'>slug_exists?</span>
<span class='arguments'>()</span>
</div>
<div class='source'>
- <a class='source-toggle' href='#' onclick="toggleCode('M000013-source'); return false">
+ <a class='source-toggle' href='#' onclick="toggleCode('M000014-source'); return false">
[show source]
</a>
- <pre id='M000013-source'> <span class="ruby-comment cmt"># File lib/slugify/slug_generator.rb, line 60</span>&#x000A;60: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">slug_exists?</span>&#x000A;61: <span class="ruby-operator">!</span><span class="ruby-identifier">slug</span>.<span class="ruby-identifier">blank?</span>&#x000A;62: <span class="ruby-keyword kw">end</span></pre>
+ <pre id='M000014-source'> <span class="ruby-comment cmt"># File lib/slugify/slug_generator.rb, line 60</span>&#x000A;60: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">slug_exists?</span>&#x000A;61: <span class="ruby-operator">!</span><span class="ruby-identifier">slug</span>.<span class="ruby-identifier">blank?</span>&#x000A;62: <span class="ruby-keyword kw">end</span></pre>
</div>
</div>
</div>
2  doc/classes/Slugify/Version.html
View
@@ -56,7 +56,7 @@ <h1 class='name'>
<tr class='top-aligned-row context-row'>
<td class='context-item-name'>TINY</td>
<td>=</td>
- <td class='context-item-value'>2</td>
+ <td class='context-item-value'>4</td>
</tr>
<tr class='top-aligned-row context-row'>
<td class='context-item-name'>STRING</td>
2  doc/created.rid
View
@@ -1 +1 @@
-Mon, 16 Nov 2009 21:56:04 -0500
+Tue, 10 Aug 2010 22:44:08 -0400
2  doc/files/lib/slugify/version_rb.html
View
@@ -32,7 +32,7 @@ <h1 class='name'>version.rb</h1>
</div>
<div class='last-update'>
Last Update:
- <span class='datetime'>Sun Oct 11 12:05:23 -0400 2009</span>
+ <span class='datetime'>Tue Aug 10 22:44:05 -0400 2010</span>
</div>
</div>
<div id='content'>
2  doc/files/lib/slugify_rb.html
View
@@ -32,7 +32,7 @@ <h1 class='name'>slugify.rb</h1>
</div>
<div class='last-update'>
Last Update:
- <span class='datetime'>Sun Oct 11 12:05:23 -0400 2009</span>
+ <span class='datetime'>Tue Aug 10 22:44:05 -0400 2010</span>
</div>
</div>
<div id='content'>
42 doc/fr_method_index.html
View
@@ -4331,19 +4331,20 @@
Element.addMethods();
var search_index = [
- { method: 'generate', module: 'slugify::sluggenerator', html: '<a href="classes/Slugify/SlugGenerator.html#M000006"><span class="method_name">generate</span> <span class="module_name">(Slugify::SlugGenerator)</span></a>' },
- { method: 'generate_slug', module: 'slugify::sluggenerator', html: '<a href="classes/Slugify/SlugGenerator.html#M000009"><span class="method_name">generate_slug</span> <span class="module_name">(Slugify::SlugGenerator)</span></a>' },
+ { method: 'append_features', module: 'slugify', html: '<a href="classes/Slugify.html#M000001"><span class="method_name">append_features</span> <span class="module_name">(Slugify)</span></a>' },
+ { method: 'generate', module: 'slugify::sluggenerator', html: '<a href="classes/Slugify/SlugGenerator.html#M000007"><span class="method_name">generate</span> <span class="module_name">(Slugify::SlugGenerator)</span></a>' },
{ method: 'generate_slug', module: 'slugify::instancemethods', html: '<a href="classes/Slugify/InstanceMethods.html#M000003"><span class="method_name">generate_slug</span> <span class="module_name">(Slugify::InstanceMethods)</span></a>' },
- { method: 'generate_slug', module: 'slugify::sluggenerator', html: '<a href="classes/Slugify/SlugGenerator.html#M000005"><span class="method_name">generate_slug</span> <span class="module_name">(Slugify::SlugGenerator)</span></a>' },
- { method: 'generate_slug?', module: 'slugify::sluggenerator', html: '<a href="classes/Slugify/SlugGenerator.html#M000012"><span class="method_name">generate_slug?</span> <span class="module_name">(Slugify::SlugGenerator)</span></a>' },
- { method: 'generate_slug_without_checking_proc', module: 'slugify::sluggenerator', html: '<a href="classes/Slugify/SlugGenerator.html#M000011"><span class="method_name">generate_slug_without_checking_proc</span> <span class="module_name">(Slugify::SlugGenerator)</span></a>' },
- { method: 'included', module: 'slugify', html: '<a href="classes/Slugify.html#M000001"><span class="method_name">included</span> <span class="module_name">(Slugify)</span></a>' },
- { method: 'new', module: 'slugify::sluggenerator', html: '<a href="classes/Slugify/SlugGenerator.html#M000008"><span class="method_name">new</span> <span class="module_name">(Slugify::SlugGenerator)</span></a>' },
- { method: 'regenerate', module: 'slugify::sluggenerator', html: '<a href="classes/Slugify/SlugGenerator.html#M000007"><span class="method_name">regenerate</span> <span class="module_name">(Slugify::SlugGenerator)</span></a>' },
- { method: 'regenerate_slug', module: 'slugify::sluggenerator', html: '<a href="classes/Slugify/SlugGenerator.html#M000010"><span class="method_name">regenerate_slug</span> <span class="module_name">(Slugify::SlugGenerator)</span></a>' },
+ { method: 'generate_slug', module: 'slugify::sluggenerator', html: '<a href="classes/Slugify/SlugGenerator.html#M000006"><span class="method_name">generate_slug</span> <span class="module_name">(Slugify::SlugGenerator)</span></a>' },
+ { method: 'generate_slug', module: 'slugify::sluggenerator', html: '<a href="classes/Slugify/SlugGenerator.html#M000010"><span class="method_name">generate_slug</span> <span class="module_name">(Slugify::SlugGenerator)</span></a>' },
+ { method: 'generate_slug?', module: 'slugify::sluggenerator', html: '<a href="classes/Slugify/SlugGenerator.html#M000013"><span class="method_name">generate_slug?</span> <span class="module_name">(Slugify::SlugGenerator)</span></a>' },
+ { method: 'generate_slug_without_checking_proc', module: 'slugify::sluggenerator', html: '<a href="classes/Slugify/SlugGenerator.html#M000012"><span class="method_name">generate_slug_without_checking_proc</span> <span class="module_name">(Slugify::SlugGenerator)</span></a>' },
+ { method: 'new', module: 'slugify::sluggenerator', html: '<a href="classes/Slugify/SlugGenerator.html#M000009"><span class="method_name">new</span> <span class="module_name">(Slugify::SlugGenerator)</span></a>' },
+ { method: 'regenerate', module: 'slugify::sluggenerator', html: '<a href="classes/Slugify/SlugGenerator.html#M000008"><span class="method_name">regenerate</span> <span class="module_name">(Slugify::SlugGenerator)</span></a>' },
{ method: 'regenerate_slug', module: 'slugify::instancemethods', html: '<a href="classes/Slugify/InstanceMethods.html#M000004"><span class="method_name">regenerate_slug</span> <span class="module_name">(Slugify::InstanceMethods)</span></a>' },
- { method: 'slug_exists?', module: 'slugify::sluggenerator', html: '<a href="classes/Slugify/SlugGenerator.html#M000013"><span class="method_name">slug_exists?</span> <span class="module_name">(Slugify::SlugGenerator)</span></a>' },
+ { method: 'regenerate_slug', module: 'slugify::sluggenerator', html: '<a href="classes/Slugify/SlugGenerator.html#M000011"><span class="method_name">regenerate_slug</span> <span class="module_name">(Slugify::SlugGenerator)</span></a>' },
+ { method: 'slug_exists?', module: 'slugify::sluggenerator', html: '<a href="classes/Slugify/SlugGenerator.html#M000014"><span class="method_name">slug_exists?</span> <span class="module_name">(Slugify::SlugGenerator)</span></a>' },
{ method: 'slugify', module: 'slugify::classmethods', html: '<a href="classes/Slugify/ClassMethods.html#M000002"><span class="method_name">slugify</span> <span class="module_name">(Slugify::ClassMethods)</span></a>' },
+ { method: 'to_param', module: 'slugify::instancemethods', html: '<a href="classes/Slugify/InstanceMethods.html#M000005"><span class="method_name">to_param</span> <span class="module_name">(Slugify::InstanceMethods)</span></a>' },
]
$(document).observe('dom:loaded', function() {
// Setup search-during-typing.
@@ -4414,19 +4415,20 @@
</form>
<ol class='methods' id='search-results' style='display: none'></ol>
<ol class='methods' id='index-entries'>
- <li><a href="classes/Slugify/SlugGenerator.html#M000006"><span class="method_name">generate</span> <span class="module_name">(Slugify::SlugGenerator)</span></a></li>
- <li><a href="classes/Slugify/SlugGenerator.html#M000009"><span class="method_name">generate_slug</span> <span class="module_name">(Slugify::SlugGenerator)</span></a></li>
+ <li><a href="classes/Slugify.html#M000001"><span class="method_name">append_features</span> <span class="module_name">(Slugify)</span></a></li>
+ <li><a href="classes/Slugify/SlugGenerator.html#M000007"><span class="method_name">generate</span> <span class="module_name">(Slugify::SlugGenerator)</span></a></li>
<li><a href="classes/Slugify/InstanceMethods.html#M000003"><span class="method_name">generate_slug</span> <span class="module_name">(Slugify::InstanceMethods)</span></a></li>
- <li><a href="classes/Slugify/SlugGenerator.html#M000005"><span class="method_name">generate_slug</span> <span class="module_name">(Slugify::SlugGenerator)</span></a></li>
- <li><a href="classes/Slugify/SlugGenerator.html#M000012"><span class="method_name">generate_slug?</span> <span class="module_name">(Slugify::SlugGenerator)</span></a></li>
- <li><a href="classes/Slugify/SlugGenerator.html#M000011"><span class="method_name">generate_slug_without_checking_proc</span> <span class="module_name">(Slugify::SlugGenerator)</span></a></li>
- <li><a href="classes/Slugify.html#M000001"><span class="method_name">included</span> <span class="module_name">(Slugify)</span></a></li>
- <li><a href="classes/Slugify/SlugGenerator.html#M000008"><span class="method_name">new</span> <span class="module_name">(Slugify::SlugGenerator)</span></a></li>
- <li><a href="classes/Slugify/SlugGenerator.html#M000007"><span class="method_name">regenerate</span> <span class="module_name">(Slugify::SlugGenerator)</span></a></li>
- <li><a href="classes/Slugify/SlugGenerator.html#M000010"><span class="method_name">regenerate_slug</span> <span class="module_name">(Slugify::SlugGenerator)</span></a></li>
+ <li><a href="classes/Slugify/SlugGenerator.html#M000006"><span class="method_name">generate_slug</span> <span class="module_name">(Slugify::SlugGenerator)</span></a></li>
+ <li><a href="classes/Slugify/SlugGenerator.html#M000010"><span class="method_name">generate_slug</span> <span class="module_name">(Slugify::SlugGenerator)</span></a></li>
+ <li><a href="classes/Slugify/SlugGenerator.html#M000013"><span class="method_name">generate_slug?</span> <span class="module_name">(Slugify::SlugGenerator)</span></a></li>
+ <li><a href="classes/Slugify/SlugGenerator.html#M000012"><span class="method_name">generate_slug_without_checking_proc</span> <span class="module_name">(Slugify::SlugGenerator)</span></a></li>
+ <li><a href="classes/Slugify/SlugGenerator.html#M000009"><span class="method_name">new</span> <span class="module_name">(Slugify::SlugGenerator)</span></a></li>
+ <li><a href="classes/Slugify/SlugGenerator.html#M000008"><span class="method_name">regenerate</span> <span class="module_name">(Slugify::SlugGenerator)</span></a></li>
<li><a href="classes/Slugify/InstanceMethods.html#M000004"><span class="method_name">regenerate_slug</span> <span class="module_name">(Slugify::InstanceMethods)</span></a></li>
- <li><a href="classes/Slugify/SlugGenerator.html#M000013"><span class="method_name">slug_exists?</span> <span class="module_name">(Slugify::SlugGenerator)</span></a></li>
+ <li><a href="classes/Slugify/SlugGenerator.html#M000011"><span class="method_name">regenerate_slug</span> <span class="module_name">(Slugify::SlugGenerator)</span></a></li>
+ <li><a href="classes/Slugify/SlugGenerator.html#M000014"><span class="method_name">slug_exists?</span> <span class="module_name">(Slugify::SlugGenerator)</span></a></li>
<li><a href="classes/Slugify/ClassMethods.html#M000002"><span class="method_name">slugify</span> <span class="module_name">(Slugify::ClassMethods)</span></a></li>
+ <li><a href="classes/Slugify/InstanceMethods.html#M000005"><span class="method_name">to_param</span> <span class="module_name">(Slugify::InstanceMethods)</span></a></li>
</ol>
</div>
</body>
Please sign in to comment.
Something went wrong with that request. Please try again.