Files

Class Index [+]

Quicksearch

Iterable

Public Instance Methods

next() click to toggle source
    # File lib/cartesian_iterator.rb, line 83
83:   def next
84:     restart unless defined? @next_index
85:     raw_next
86:   end
raw_next() click to toggle source
    # File lib/cartesian_iterator.rb, line 88
88:   def raw_next
89:     self[@next_index += 1]
90:   end
restart() click to toggle source
    # File lib/cartesian_iterator.rb, line 78
78:   def restart
79:     @next_index = 1
80:     true
81:   end
restart_and_raw_next() click to toggle source
    # File lib/cartesian_iterator.rb, line 92
92:   def restart_and_raw_next
93:     self[@next_index = 0]
94:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.