org.jruby
Class RubyArgsFile
java.lang.Object
org.jruby.RubyObject
org.jruby.RubyArgsFile
- All Implemented Interfaces:
- java.lang.Cloneable, IRubyObject
- public class RubyArgsFile
- extends RubyObject
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 |
RubyArgsFile
public RubyArgsFile(Ruby runtime)
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.