Parent

Methods

Class Index

Quicksearch

Integer

Public Instance Methods

of() {|i| ...} click to toggle source

(Not documented)

    # File /Users/ged/source/ruby/Arrow/lib/apache/fakerequest.rb, line 11
11:     def of
12:         accum = []
13:         self.times do |i|
14:             accum << yield(i)
15:         end
16:         accum
17:     end

secsequence

--- SEC00003

seccomment

--- ""

method_list

--- 
- methods: 
  - visibility: public
    aref: M000004
    name: of
    sourcecode: "    <span class=\"ruby-comment cmt\"># File /Users/ged/source/ruby/Arrow/lib/apache/fakerequest.rb, line 11</span>\n\
      11:     <span class=\"ruby-keyword kw\">def</span> <span class=\"ruby-identifier\">of</span>\n\
      12:         <span class=\"ruby-identifier\">accum</span> = []\n\
      13:         <span class=\"ruby-keyword kw\">self</span>.<span class=\"ruby-identifier\">times</span> <span class=\"ruby-keyword kw\">do</span> <span class=\"ruby-operator\">|</span><span class=\"ruby-identifier\">i</span><span class=\"ruby-operator\">|</span>\n\
      14:             <span class=\"ruby-identifier\">accum</span> <span class=\"ruby-operator\">&lt;&lt;</span> <span class=\"ruby-keyword kw\">yield</span>(<span class=\"ruby-identifier\">i</span>)\n\
      15:         <span class=\"ruby-keyword kw\">end</span>\n\
      16:         <span class=\"ruby-identifier\">accum</span>\n\
      17:     <span class=\"ruby-keyword kw\">end</span>"
    params: () {|i| ...}
  category: Instance
  type: Public

sectitle

--- 

[Validate]

Generated with the Darkfish Rdoc Generator.