1 <?xml version=
"1.0" encoding=
"iso-8859-1"?>
3 PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en" lang=
"en">
8 <title>Module: SongsHelper
</title>
9 <meta http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1" />
10 <meta http-equiv=
"Content-Script-Type" content=
"text/javascript" />
11 <link rel=
"stylesheet" href=
".././rdoc-style.css" type=
"text/css" media=
"screen" />
12 <script type=
"text/javascript">
15 function popupCode( url ) {
16 window.open(url,
"Code",
"resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
19 function toggleCode( id ) {
20 if ( document.getElementById )
21 elem = document.getElementById( id );
22 else if ( document.all )
23 elem = eval(
"document.all." + id );
27 elemStyle = elem.style;
29 if ( elemStyle.display !=
"block" ) {
30 elemStyle.display =
"block"
32 elemStyle.display =
"none"
38 // Make codeblocks hidden by default
39 document.writeln(
"<style type=\"text/css\
">div.method-source-code { display: none }</style>" )
49 <div id=
"classHeader">
50 <table class=
"header-table">
51 <tr class=
"top-aligned-row">
52 <td><strong>Module
</strong></td>
53 <td class=
"class-name-in-header">SongsHelper
</td>
55 <tr class=
"top-aligned-row">
56 <td><strong>In:
</strong></td>
58 <a href=
"../files/app/helpers/songs_helper_rb.html">
59 app/helpers/songs_helper.rb
67 <!-- banner header -->
69 <div id=
"bodyContent">
73 <div id=
"contextContent">
79 <div id=
"method-list">
80 <h3 class=
"section-bar">Methods
</h3>
82 <div class=
"name-list">
83 <a href=
"#M000039">slides_for_song
</a>
101 <!-- if method_list -->
103 <h3 class=
"section-bar">Public Instance methods
</h3>
105 <div id=
"method-M000039" class=
"method-detail">
106 <a name=
"M000039"></a>
108 <div class=
"method-heading">
109 <a href=
"#M000039" class=
"method-signature">
110 <span class=
"method-name">slides_for_song
</span><span class=
"method-args">(song)
</span>
114 <div class=
"method-description">
115 <p><a class=
"source-toggle" href=
"#"
116 onclick=
"toggleCode('M000039-source');return false;">[Source]
</a></p>
117 <div class=
"method-source-code" id=
"M000039-source">
119 <span class=
"ruby-comment cmt"># File app/helpers/songs_helper.rb, line
2</span>
120 2:
<span class=
"ruby-keyword kw">def
</span> <span class=
"ruby-identifier">slides_for_song
</span>(
<span class=
"ruby-identifier">song
</span>)
121 3:
<span class=
"ruby-constant">RedCloth
</span>.
<span class=
"ruby-identifier">new
</span>(
<span class=
"ruby-identifier">song
</span>.
<span class=
"ruby-identifier">slides
</span>.
<span class=
"ruby-identifier">join
</span>(
<span class=
"ruby-value str">"<hr /
>"</span>), [
<span class=
"ruby-identifier">:hard_breaks
</span>]).
<span class=
"ruby-identifier">to_html
</span>
122 4:
<span class=
"ruby-keyword kw">end
</span>
135 <div id=
"validator-badges">
136 <p><small><a href=
"http://validator.w3.org/check/referer">[Validate]
</a></small></p>