~ubuntu-branches/ubuntu/natty/mcollective/natty

« back to all changes in this revision

Viewing changes to doc/classes/MCollective/RPC/Progress.html

  • Committer: Bazaar Package Importer
  • Author(s): Dustin Kirkland
  • Date: 2011-02-17 13:07:47 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110217130747-pxvkrl6up9znj8ft
Tags: 1.0.1-0ubuntu1
* Merge new upstream release
* debian/mcollective.install: drop unneeded /etc/init.d (we use upstart)
* debian/copyright: use Apache 2.0 header and point to common-license
  file, per Lintian

Show diffs side-by-side

added added

removed removed

Lines of Context:
84
84
progress bar.
85
85
</p>
86
86
<p>
87
 
p = <a href="Progress.html#M000103">Progress.new(60)</a> 100.times {|i|
 
87
p = <a href="Progress.html#M000105">Progress.new(60)</a> 100.times {|i|
88
88
print p.twirl(i+1, 100) + &quot;\r&quot;};puts
89
89
</p>
90
90
<pre>
100
100
      <h3 class="section-bar">Methods</h3>
101
101
 
102
102
      <div class="name-list">
103
 
      <a href="#M000103">new</a>&nbsp;&nbsp;
104
 
      <a href="#M000104">twirl</a>&nbsp;&nbsp;
 
103
      <a href="#M000105">new</a>&nbsp;&nbsp;
 
104
      <a href="#M000106">twirl</a>&nbsp;&nbsp;
105
105
      </div>
106
106
    </div>
107
107
 
123
123
    <div id="methods">
124
124
      <h3 class="section-bar">Public Class methods</h3>
125
125
 
126
 
      <div id="method-M000103" class="method-detail">
127
 
        <a name="M000103"></a>
 
126
      <div id="method-M000105" class="method-detail">
 
127
        <a name="M000105"></a>
128
128
 
129
129
        <div class="method-heading">
130
 
          <a href="#M000103" class="method-signature">
 
130
          <a href="#M000105" class="method-signature">
131
131
          <span class="method-name">new</span><span class="method-args">(size)</span>
132
132
          </a>
133
133
        </div>
134
134
      
135
135
        <div class="method-description">
136
136
          <p><a class="source-toggle" href="#"
137
 
            onclick="toggleCode('M000103-source');return false;">[Source]</a></p>
138
 
          <div class="method-source-code" id="M000103-source">
 
137
            onclick="toggleCode('M000105-source');return false;">[Source]</a></p>
 
138
          <div class="method-source-code" id="M000105-source">
139
139
<pre>
140
140
    <span class="ruby-comment cmt"># File lib/mcollective/rpc/progress.rb, line 11</span>
141
141
11:             <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">size</span>)
150
150
 
151
151
      <h3 class="section-bar">Public Instance methods</h3>
152
152
 
153
 
      <div id="method-M000104" class="method-detail">
154
 
        <a name="M000104"></a>
 
153
      <div id="method-M000106" class="method-detail">
 
154
        <a name="M000106"></a>
155
155
 
156
156
        <div class="method-heading">
157
 
          <a href="#M000104" class="method-signature">
 
157
          <a href="#M000106" class="method-signature">
158
158
          <span class="method-name">twirl</span><span class="method-args">(current, total)</span>
159
159
          </a>
160
160
        </div>
161
161
      
162
162
        <div class="method-description">
163
163
          <p><a class="source-toggle" href="#"
164
 
            onclick="toggleCode('M000104-source');return false;">[Source]</a></p>
165
 
          <div class="method-source-code" id="M000104-source">
 
164
            onclick="toggleCode('M000106-source');return false;">[Source]</a></p>
 
165
          <div class="method-source-code" id="M000106-source">
166
166
<pre>
167
167
    <span class="ruby-comment cmt"># File lib/mcollective/rpc/progress.rb, line 17</span>
168
168
17:             <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">twirl</span>(<span class="ruby-identifier">current</span>, <span class="ruby-identifier">total</span>)