Pistos (owner)

Revisions

gist: 132067 Download_button fork
public
Public Clone URL: git://gist.github.com/132067.git
Embed All Files: show embed
snippet1.rb #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@template = %q{
<div class="#{html_class}">
<h3>#{capitalized_title}</h3>
<table>
#{trs}
</table>
<h3>#{title}</h3>
</div>
}
 
def run( html_class, title, num_rows = 3 )
  trs = %{<tr><td>boo</td></tr>\n} * num_rows
  capitalized_title = title.capitalized
end