Class: RubyJS.Enumerator

Defined in: lib/corelib/enumerator.coffee
Inherits: RubyJS.Object

Class Method Summary

Instance Method Summary

Inherited Method Summary

Methods inherited from RubyJS.Object

.include, .__add_default_aliases__, #send, #respond_to, #to_enum, #tap

Class Method Details

+ (void) new(obj, iter, args...)

+ (void) create(args...)

Constructor Details

- (void) constructor(object, iter = 'each', args = [])

Creates an Enumerator. Pass optional arguments as an array instead of splatted argument.

new R.Enumerator([], 'each') new R.Enumerator([], 'each_with_object', ['foo'])

Instance Method Details

- (void) is_enumerator()

- (void) each(block)

- (void) each_with_index(block)

Same as Enumerable, but without returning this

- (void) size()

- (void) iterator()

- (void) native_array()

- (void) next()

- (void) to_enum(iter = "each", args...)