org.jruby
Class RubyArgsFile

java.lang.Object
  extended byorg.jruby.RubyObject
      extended byorg.jruby.RubyArgsFile
All Implemented Interfaces:
java.lang.Cloneable, IRubyObject

public class RubyArgsFile
extends RubyObject


Nested Class Summary
 
Nested classes inherited from class org.jruby.RubyObject
RubyObject.Finalizer
 
Field Summary
 
Fields inherited from class org.jruby.RubyObject
instanceVariables, isTrue, metaClass, NEVER, OBJECT_ALLOCATOR
 
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY
 
Constructor Summary
RubyArgsFile(Ruby runtime)
           
 
Method Summary
 IRubyObject binmode()
           
 IRubyObject close_m()
           
 IRubyObject closed_p()
           
 IRubyObject each_byte(Block block)
           
 IRubyObject each_line(IRubyObject[] args, Block block)
          Invoke a block for each line.
 IRubyObject eof()
           
 IRubyObject file()
           
 RubyString filename()
           
 IRubyObject fileno()
           
 IRubyObject getc()
           
 IRubyObject gets(IRubyObject[] args)
          Read a line.
 void initArgsFile()
           
 IRubyObject internalGets(IRubyObject[] args)
           
 IRubyObject lineno()
           
protected  boolean nextArgsFile()
           
 IRubyObject read(IRubyObject[] args)
           
 IRubyObject readchar()
           
 IRubyObject readline(IRubyObject[] args)
          Read a line.
 RubyArray readlines(IRubyObject[] args)
           
 IRubyObject rewind()
           
 IRubyObject seek(IRubyObject[] args)
           
 IRubyObject set_lineno(IRubyObject line)
           
 IRubyObject set_pos(IRubyObject offset)
           
 void setCurrentLineNumber(int newLineNumber)
           
 IRubyObject skip()
           
 IRubyObject tell()
           
 IRubyObject to_io()
           
 IRubyObject to_s()
           
 
Methods inherited from class org.jruby.RubyObject
addFinalizer, anyToString, asString, asSymbol, attachToObjectSpace, callInit, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethodMissingIfNecessary, callSuper, checkArrayType, checkFrozen, checkStringType, compilerCallMethod, compilerCallMethodWithIndex, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToString, convertToType, convertToType, convertToType, convertToTypeWithCheck, createObjectClass, dataGetStruct, dataWrapStruct, display, doClone, dup, eql, eqlInternal, equal, equalInternal, equals, evalSimple, evalUnder, evalWithBinding, extend, freeze, frozen, getInstanceVariable, getInstanceVariables, getInstanceVariablesSnapshot, getJavaClass, getMetaClass, getNativeTypeIndex, getRuntime, getSingletonClass, getSingletonClassClone, getType, hash, hashCode, id_deprecated, id, infectBy, inherited, initCopy, initialize_copy, initialize, inspect, instance_eval, instance_exec, instance_of, instance_variable_get, instance_variable_set, instance_variables, instanceVariableNames, isFalse, isFrozen, isImmediate, isKindOf, isNil, isSingleton, isTaint, isTrue, kind_of, makeMetaClass, match, method, methods, nil_p, obj_equal, private_methods, protected_methods, public_methods, puts, rbClone, remove_instance_variable, removeFinalizers, removeInstanceVariable, respond_to, respondsTo, safeGetInstanceVariables, safeHasInstanceVariables, send, setFrozen, setInstanceVariable, setInstanceVariable, setInstanceVariables, setMetaClass, setTaint, singleton_methods, specificEval, taint, tainted, testFrozen, toString, trueFalseNil, trueFalseNil, type_deprecated, type, untaint
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RubyArgsFile

public RubyArgsFile(Ruby runtime)
Method Detail

setCurrentLineNumber

public void setCurrentLineNumber(int newLineNumber)

initArgsFile

public void initArgsFile()

nextArgsFile

protected boolean nextArgsFile()

fileno

public IRubyObject fileno()

to_io

public IRubyObject to_io()

internalGets

public IRubyObject internalGets(IRubyObject[] args)

gets

public IRubyObject gets(IRubyObject[] args)
Read a line.


readline

public IRubyObject readline(IRubyObject[] args)
Read a line.


readlines

public RubyArray readlines(IRubyObject[] args)

each_byte

public IRubyObject each_byte(Block block)

each_line

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


file

public IRubyObject file()

skip

public IRubyObject skip()

close_m

public IRubyObject close_m()

closed_p

public IRubyObject closed_p()

binmode

public IRubyObject binmode()

lineno

public IRubyObject lineno()

tell

public IRubyObject tell()

rewind

public IRubyObject rewind()

eof

public IRubyObject eof()

set_pos

public IRubyObject set_pos(IRubyObject offset)

seek

public IRubyObject seek(IRubyObject[] args)

set_lineno

public IRubyObject set_lineno(IRubyObject line)

readchar

public IRubyObject readchar()

getc

public IRubyObject getc()

read

public IRubyObject read(IRubyObject[] args)

filename

public RubyString filename()

to_s

public IRubyObject to_s()
Overrides:
to_s in class RubyObject


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