org.jruby
Class RubyArgsFile

java.lang.Object
  extended by org.jruby.RubyArgsFile

public class RubyArgsFile
extends java.lang.Object


Constructor Summary
RubyArgsFile()
           
 
Method Summary
static IRubyObject binmode(ThreadContext context, IRubyObject recv)
           
static IRubyObject close(ThreadContext context, IRubyObject recv)
           
static IRubyObject closed_p(ThreadContext context, IRubyObject recv)
           
static IRubyObject each_byte(ThreadContext context, IRubyObject recv, Block block)
           
static IRubyObject each_line(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)
          Invoke a block for each line.
static IRubyObject eof(ThreadContext context, IRubyObject recv)
           
static IRubyObject file(ThreadContext context, IRubyObject recv)
           
static RubyString filename(ThreadContext context, IRubyObject recv)
           
static IRubyObject fileno(ThreadContext context, IRubyObject recv)
           
static IRubyObject getc(ThreadContext context, IRubyObject recv)
           
static IRubyObject gets(ThreadContext context, IRubyObject recv, IRubyObject[] args)
          Read a line.
static void initArgsFile(Ruby runtime)
           
static IRubyObject internalGets(ThreadContext context, IRubyObject recv, IRubyObject[] args)
           
static IRubyObject lineno(ThreadContext context, IRubyObject recv)
           
static IRubyObject read(ThreadContext context, IRubyObject recv, IRubyObject[] args)
           
static IRubyObject readchar(ThreadContext context, IRubyObject recv)
           
static IRubyObject readline(ThreadContext context, IRubyObject recv, IRubyObject[] args)
          Read a line.
static RubyArray readlines(ThreadContext context, IRubyObject recv, IRubyObject[] args)
           
static IRubyObject rewind(ThreadContext context, IRubyObject recv)
           
static IRubyObject seek(ThreadContext context, IRubyObject recv, IRubyObject[] args)
           
static IRubyObject set_lineno(ThreadContext context, IRubyObject recv, IRubyObject line)
           
static IRubyObject set_pos(ThreadContext context, IRubyObject recv, IRubyObject offset)
           
static void setCurrentLineNumber(IRubyObject recv, int newLineNumber)
           
static IRubyObject skip(IRubyObject recv)
           
static IRubyObject tell(ThreadContext context, IRubyObject recv)
           
static IRubyObject to_io(ThreadContext context, IRubyObject recv)
           
static IRubyObject to_s(IRubyObject recv)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RubyArgsFile

public RubyArgsFile()
Method Detail

setCurrentLineNumber

public static void setCurrentLineNumber(IRubyObject recv,
                                        int newLineNumber)

initArgsFile

public static void initArgsFile(Ruby runtime)

fileno

public static IRubyObject fileno(ThreadContext context,
                                 IRubyObject recv)

to_io

public static IRubyObject to_io(ThreadContext context,
                                IRubyObject recv)

internalGets

public static IRubyObject internalGets(ThreadContext context,
                                       IRubyObject recv,
                                       IRubyObject[] args)

gets

public static IRubyObject gets(ThreadContext context,
                               IRubyObject recv,
                               IRubyObject[] args)
Read a line.


readline

public static IRubyObject readline(ThreadContext context,
                                   IRubyObject recv,
                                   IRubyObject[] args)
Read a line.


readlines

public static RubyArray readlines(ThreadContext context,
                                  IRubyObject recv,
                                  IRubyObject[] args)

each_byte

public static IRubyObject each_byte(ThreadContext context,
                                    IRubyObject recv,
                                    Block block)

each_line

public static IRubyObject each_line(ThreadContext context,
                                    IRubyObject recv,
                                    IRubyObject[] args,
                                    Block block)
Invoke a block for each line.


file

public static IRubyObject file(ThreadContext context,
                               IRubyObject recv)

skip

public static IRubyObject skip(IRubyObject recv)

close

public static IRubyObject close(ThreadContext context,
                                IRubyObject recv)

closed_p

public static IRubyObject closed_p(ThreadContext context,
                                   IRubyObject recv)

binmode

public static IRubyObject binmode(ThreadContext context,
                                  IRubyObject recv)

lineno

public static IRubyObject lineno(ThreadContext context,
                                 IRubyObject recv)

tell

public static IRubyObject tell(ThreadContext context,
                               IRubyObject recv)

rewind

public static IRubyObject rewind(ThreadContext context,
                                 IRubyObject recv)

eof

public static IRubyObject eof(ThreadContext context,
                              IRubyObject recv)

set_pos

public static IRubyObject set_pos(ThreadContext context,
                                  IRubyObject recv,
                                  IRubyObject offset)

seek

public static IRubyObject seek(ThreadContext context,
                               IRubyObject recv,
                               IRubyObject[] args)

set_lineno

public static IRubyObject set_lineno(ThreadContext context,
                                     IRubyObject recv,
                                     IRubyObject line)

readchar

public static IRubyObject readchar(ThreadContext context,
                                   IRubyObject recv)

getc

public static IRubyObject getc(ThreadContext context,
                               IRubyObject recv)

read

public static IRubyObject read(ThreadContext context,
                               IRubyObject recv,
                               IRubyObject[] args)

filename

public static RubyString filename(ThreadContext context,
                                  IRubyObject recv)

to_s

public static IRubyObject to_s(IRubyObject recv)


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