diff options
Diffstat (limited to 'doc/app/classes/Bugzilla/Change.html')
-rw-r--r-- | doc/app/classes/Bugzilla/Change.html | 243 |
1 files changed, 0 insertions, 243 deletions
diff --git a/doc/app/classes/Bugzilla/Change.html b/doc/app/classes/Bugzilla/Change.html deleted file mode 100644 index 6f4418a..0000000 --- a/doc/app/classes/Bugzilla/Change.html +++ /dev/null @@ -1,243 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html - PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> - -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> - <title>Class: Bugzilla::Change</title> - <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> - <meta http-equiv="Content-Script-Type" content="text/javascript" /> - <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> - <script type="text/javascript"> - // <![CDATA[ - - function popupCode( url ) { - window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") - } - - function toggleCode( id ) { - if ( document.getElementById ) - elem = document.getElementById( id ); - else if ( document.all ) - elem = eval( "document.all." + id ); - else - return false; - - elemStyle = elem.style; - - if ( elemStyle.display != "block" ) { - elemStyle.display = "block" - } else { - elemStyle.display = "none" - } - - return true; - } - - // Make codeblocks hidden by default - document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) - - // ]]> - </script> - -</head> -<body> - - - - <div id="classHeader"> - <table class="header-table"> - <tr class="top-aligned-row"> - <td><strong>Class</strong></td> - <td class="class-name-in-header">Bugzilla::Change</td> - </tr> - <tr class="top-aligned-row"> - <td><strong>In:</strong></td> - <td> - <a href="../../files/lib/bugzilla_rb.html"> - lib/bugzilla.rb - </a> - <br /> - </td> - </tr> - - <tr class="top-aligned-row"> - <td><strong>Parent:</strong></td> - <td> - Object - </td> - </tr> - </table> - </div> - <!-- banner header --> - - <div id="bodyContent"> - - - - <div id="contextContent"> - - <div id="description"> - <p> -This represents a single <a href="Change.html">Change</a> made to a <a -href="Bug.html">Bug</a> -</p> - - </div> - - - </div> - - <div id="method-list"> - <h3 class="section-bar">Methods</h3> - - <div class="name-list"> - <a href="#M000038">add_change</a> - <a href="#M000037">new</a> - <a href="#M000039">to_s</a> - </div> - </div> - - </div> - - - <!-- if includes --> - - <div id="section"> - - - - - - <div id="attribute-list"> - <h3 class="section-bar">Attributes</h3> - - <div class="name-list"> - <table> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">changes</td> - <td class="context-item-value"> [R] </td> - <td class="context-item-desc"></td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">time</td> - <td class="context-item-value"> [R] </td> - <td class="context-item-desc"></td> - </tr> - <tr class="top-aligned-row context-row"> - <td class="context-item-name">user</td> - <td class="context-item-value"> [R] </td> - <td class="context-item-desc"></td> - </tr> - </table> - </div> - </div> - - - - <!-- if method_list --> - <div id="methods"> - <h3 class="section-bar">Public Class methods</h3> - - <div id="method-M000037" class="method-detail"> - <a name="M000037"></a> - - <div class="method-heading"> - <a href="#M000037" class="method-signature"> - <span class="method-name">new</span><span class="method-args">(user, time)</span> - </a> - </div> - - <div class="method-description"> - <p> -Creates a <a href="Change.html#M000037">new</a> <a -href="Change.html">Change</a> made by <tt>user</tt> at <tt>time</tt>. -</p> - <p><a class="source-toggle" href="#" - onclick="toggleCode('M000037-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000037-source"> -<pre> - <span class="ruby-comment cmt"># File lib/bugzilla.rb, line 217</span> -217: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">time</span>) -218: <span class="ruby-ivar">@user</span> = <span class="ruby-identifier">user</span> <span class="ruby-operator">||</span> <span class="ruby-value str">""</span> -219: <span class="ruby-ivar">@time</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">time</span>) -220: <span class="ruby-ivar">@changes</span> = {} -221: <span class="ruby-keyword kw">end</span> -</pre> - </div> - </div> - </div> - - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000038" class="method-detail"> - <a name="M000038"></a> - - <div class="method-heading"> - <a href="#M000038" class="method-signature"> - <span class="method-name">add_change</span><span class="method-args">(field, removed, added)</span> - </a> - </div> - - <div class="method-description"> - <p> -Adds a changed <tt>field</tt> to the <a href="Change.html">Change</a> -object. <tt>removed</tt> denotes the removed text and <tt>added</tt> is the -<a href="Change.html#M000037">new</a> text -</p> - <p><a class="source-toggle" href="#" - onclick="toggleCode('M000038-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000038-source"> -<pre> - <span class="ruby-comment cmt"># File lib/bugzilla.rb, line 225</span> -225: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_change</span>(<span class="ruby-identifier">field</span>, <span class="ruby-identifier">removed</span>, <span class="ruby-identifier">added</span>) -226: <span class="ruby-identifier">raise</span>(<span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">"A change to this field is already registered."</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@changes</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">field</span>) -227: <span class="ruby-identifier">raise</span>(<span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">"field has to be a symbol"</span>) <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">field</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Symbol</span> -228: -229: <span class="ruby-ivar">@changes</span>[<span class="ruby-identifier">field</span>] = [<span class="ruby-identifier">removed</span>, <span class="ruby-identifier">added</span>] -230: <span class="ruby-keyword kw">end</span> -</pre> - </div> - </div> - </div> - - <div id="method-M000039" class="method-detail"> - <a name="M000039"></a> - - <div class="method-heading"> - <a href="#M000039" class="method-signature"> - <span class="method-name">to_s</span><span class="method-args">()</span> - </a> - </div> - - <div class="method-description"> - <p> -Returns a string representation -</p> - <p><a class="source-toggle" href="#" - onclick="toggleCode('M000039-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000039-source"> -<pre> - <span class="ruby-comment cmt"># File lib/bugzilla.rb, line 233</span> -233: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> -234: <span class="ruby-node">"#{@user} changed at #{@time.to_s}: #{@changes.inspect}"</span> -235: <span class="ruby-keyword kw">end</span> -</pre> - </div> - </div> - </div> - - - </div> - - - </div> - - -<div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> -</div> - -</body> -</html>
\ No newline at end of file |