Method: RCGTK::Function::ParameterCollection#each

Defined in:
lib/rcgtk/function.rb

#each {|val| ... } ⇒ Enumerator

An iterator for each parameter inside this collection.

Yield Parameters:

Returns:

  • (Enumerator)

    Returns an Enumerator if no block is given.



218
219
220
221
222
223
224
# File 'lib/rcgtk/function.rb', line 218

def each
  return to_enum :each unless block_given?

  self.size.times { |index| yield self[index] }

  self
end