org.jruby.ext
Class Generator

java.lang.Object
  extended by org.jruby.ext.Generator

public class Generator
extends java.lang.Object

Author:
Ola Bini

Nested Class Summary
static class Generator.Service
           
 
Constructor Summary
Generator()
           
 
Method Summary
static void createGenerator(Ruby runtime)
           
static IRubyObject current(IRubyObject self, Block block)
           
static IRubyObject each(IRubyObject self, Block block)
           
static IRubyObject end_p(IRubyObject self)
           
static IRubyObject index(IRubyObject self)
           
static IRubyObject initialize(IRubyObject self, IRubyObject[] args, Block block)
           
static IRubyObject new_instance(IRubyObject self, IRubyObject[] args, Block block)
           
static IRubyObject next_p(IRubyObject self)
           
static IRubyObject next(IRubyObject self, Block block)
           
static IRubyObject rewind(IRubyObject self, Block block)
           
static IRubyObject yield(IRubyObject self, IRubyObject value, Block block)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Generator

public Generator()
Method Detail

createGenerator

public static void createGenerator(Ruby runtime)
                            throws java.io.IOException
Throws:
java.io.IOException

new_instance

public static IRubyObject new_instance(IRubyObject self,
                                       IRubyObject[] args,
                                       Block block)

initialize

public static IRubyObject initialize(IRubyObject self,
                                     IRubyObject[] args,
                                     Block block)

yield

public static IRubyObject yield(IRubyObject self,
                                IRubyObject value,
                                Block block)

end_p

public static IRubyObject end_p(IRubyObject self)

next_p

public static IRubyObject next_p(IRubyObject self)

index

public static IRubyObject index(IRubyObject self)

next

public static IRubyObject next(IRubyObject self,
                               Block block)

current

public static IRubyObject current(IRubyObject self,
                                  Block block)

rewind

public static IRubyObject rewind(IRubyObject self,
                                 Block block)

each

public static IRubyObject each(IRubyObject self,
                               Block block)


Copyright © 2002-2007 JRuby Team. All Rights Reserved.