Package org.jruby
Class RubyArgsFile
java.lang.Object
org.jruby.RubyBasicObject
org.jruby.RubyObject
org.jruby.RubyArgsFile
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<IRubyObject>,InstanceVariables,InternalVariables,IRubyObject,CoreObjectType
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic enumNested classes/interfaces inherited from class org.jruby.RubyObject
RubyObject.DataNested classes/interfaces inherited from class org.jruby.RubyBasicObject
RubyBasicObject.Finalizer -
Field Summary
Fields inherited from class org.jruby.RubyObject
IVAR_INSPECTING_OBJECT_ALLOCATOR, OBJECT_ALLOCATOR, REIFYING_OBJECT_ALLOCATORFields inherited from class org.jruby.RubyBasicObject
ALL_F, BASICOBJECT_ALLOCATOR, COMPARE_BY_IDENTITY_F, ERR_INSECURE_SET_INST_VAR, FALSE_F, FL_USHIFT, flags, FROZEN_F, IS_OVERLAID_F, metaClass, NEVER, NIL_F, REFINED_MODULE_F, STAMP_OFFSET, TAINTED_F, UNDEF, USER0_F, USER1_F, USER2_F, USER3_F, USER4_F, USER5_F, USER6_F, USER7_F, USER8_F, USER9_F, USERA_F, VAR_TABLE_OFFSET, varTable, varTableStampFields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidargf_close(ThreadContext context, IRubyObject file) static IRubyObjectargv(ThreadContext context, IRubyObject recv) static IRubyObjectbinmode(ThreadContext context, IRubyObject recv) static IRubyObjectbytes(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) static IRubyObjectchars(ThreadContext context, IRubyObject recv, Block block) static IRubyObjectclose(ThreadContext context, IRubyObject recv) static IRubyObjectclosed_p(ThreadContext context, IRubyObject recv) static IRubyObjectcodepoints(ThreadContext context, IRubyObject recv, Block block) Deprecated.static IRubyObjecteach(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) static IRubyObjecteach_byte(ThreadContext context, IRubyObject recv, Block block) static IRubyObjecteach_byte(ThreadContext context, IRubyObject recv, IRubyObject arg, Block block) static IRubyObjecteach_char(ThreadContext context, IRubyObject recv, Block block) static IRubyObjecteach_charCommon(ThreadContext context, IRubyObject recv, Block block) static IRubyObjecteach_codepoint(ThreadContext context, IRubyObject recv, Block block) static IRubyObjecteach_line(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Invoke a block for each line.static IRubyObjecteof(ThreadContext context, IRubyObject recv) static IRubyObjecteof_p(ThreadContext context, IRubyObject recv) static IRubyObjectexternal_encoding(ThreadContext context, IRubyObject recv) static IRubyObjectfile(ThreadContext context, IRubyObject recv) static IRubyObjectfilename(ThreadContext context, IRubyObject recv) static IRubyObjectfileno(ThreadContext context, IRubyObject recv) static IRubyObjectgetbyte(ThreadContext context, IRubyObject recv) static IRubyObjectgetc(ThreadContext context, IRubyObject recv) static IRubyObjectgets(ThreadContext context, IRubyObject recv, IRubyObject[] args) Read a line.static voidinitArgsFile(ThreadContext context, RubyModule Enumerable, GlobalVariables globals) initialize(ThreadContext context, IRubyObject[] args) static IRubyObjectinplace_mode(ThreadContext context, IRubyObject recv) inplace_mode_set(ThreadContext context, IRubyObject test) static IRubyObjectinplace_mode_set(ThreadContext context, IRubyObject recv, IRubyObject test) static IRubyObjectinternal_encoding(ThreadContext context, IRubyObject recv) static IRubyObjectlineno(ThreadContext context, IRubyObject recv) static IRubyObjectlineno_set(ThreadContext context, IRubyObject recv, IRubyObject line) static IRubyObjectlines(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Deprecated.static IRubyObjectop_binmode(ThreadContext context, IRubyObject recv) static IRubyObjectprint(ThreadContext context, IRubyObject recv) static IRubyObjectprint(ThreadContext context, IRubyObject recv, IRubyObject arg0) static IRubyObjectprint(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectprint(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1) static IRubyObjectprint(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) static IRubyObjectprintf(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectputc(ThreadContext context, IRubyObject recv, IRubyObject arg0) static IRubyObjectputs(ThreadContext context, IRubyObject recv) static IRubyObjectputs(ThreadContext context, IRubyObject recv, IRubyObject arg0) static IRubyObjectputs(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectputs(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1) static IRubyObjectputs(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) static IRubyObjectread(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectread_nonblock(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectreadbyte(ThreadContext context, IRubyObject recv) static IRubyObjectreadchar(ThreadContext context, IRubyObject recv) static IRubyObjectreadline(ThreadContext context, IRubyObject recv, IRubyObject[] args) Read a line.static IRubyObjectreadlines(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectreadpartial(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectrewind(ThreadContext context, IRubyObject recv) static IRubyObjectseek(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectset_encoding(ThreadContext context, IRubyObject recv, IRubyObject encoding) static IRubyObjectset_encoding(ThreadContext context, IRubyObject recv, IRubyObject encoding, IRubyObject internalEncoding) static IRubyObjectset_encoding(ThreadContext context, IRubyObject recv, IRubyObject encoding, IRubyObject internalEncoding, IRubyObject options) static IRubyObjectset_pos(ThreadContext context, IRubyObject recv, IRubyObject offset) static voidsetCurrentLineNumber(IRubyObject recv, int newLineNumber) Deprecated.static IRubyObjectskip(IRubyObject recv) Deprecated.static IRubyObjectskip(ThreadContext context, IRubyObject recv) static IRubyObjecttell(ThreadContext context, IRubyObject recv) static IRubyObjectto_a(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectto_io(ThreadContext context, IRubyObject recv) static IRubyObjectto_s(IRubyObject recv) Deprecated.static IRubyObjectto_s(ThreadContext context, IRubyObject recv) static IRubyObjectwrite(ThreadContext context, IRubyObject recv) static IRubyObjectwrite(ThreadContext context, IRubyObject recv, IRubyObject arg0) static IRubyObjectwrite(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObjectwrite(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1) static IRubyObjectwrite(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) Methods inherited from class org.jruby.RubyObject
attachToObjectSpace, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, callInit, convertToType, dig, dig1, dig2, eqlInternal, equalInternal, equals, finishObjectClass, getNativeClassIndex, hashCode, inspect, op_eqq, puts, specificEval, toRubyString, toStringMethods inherited from class org.jruby.RubyBasicObject
addFinalizer, addFinalizer, anyToString, asJavaString, asString, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callMethod, callSuper, checkArrayType, checkCallMethod, checkCallMethod, checkFrozen, checkStringType, cloneSetup, compareTo, convertToArray, convertToFloat, convertToHash, convertToInteger, convertToInteger, convertToInteger, convertToString, copyInstanceVariablesInto, copySpecialInstanceVariables, dataGetStruct, dataGetStructChecked, dataWrapStruct, decode, display, dup, dupFinalizer, dupSetup, ensureInstanceVariablesSettable, eql, eql_p, eql_p, equal_p, evalUnder, extend, fastGetInstanceVariable, fastGetInternalVariable, fastHasInstanceVariable, fastHasInternalVariable, fastSetInstanceVariable, fastSetInternalVariable, finishBasicObjectClass, forEachInstanceVariable, forEachInstanceVariableName, freeze, frozen_p, getCurrentContext, getFFIHandle, getFlag, getInstanceEvalClass, getInstanceEvalClass, getInstanceVariable, getInstanceVariableList, getInstanceVariableNameList, getInstanceVariables, getInternalVariable, getInternalVariables, getJavaClass, getMarshalVariableList, getMetaClass, getMetaClass, getNativeHandle, getNativeTypeIndex, getObjectId, getRuntime, getSingletonClass, getSingletonClassClone, getSingletonClassCloneAndAttach, getSingletonClassCloneAndAttach, getType, getVariable, getVariableCount, getVariableList, getVariableNameList, hash, hash, hashyInspect, hasInstanceVariable, hasInstanceVariables, hasInternalVariable, hasVariables, id, infectBy, initialize, initialize_copy, initialize_copy, inspect, inspect, inspectHashCode, instance_eval, instance_eval, instance_eval, instance_eval, instance_eval, instance_exec, instance_of_p, instance_variable_defined_p, instance_variable_get, instance_variable_set, instance_variables, isBuiltin, isClass, isFalse, isFrozen, isImmediate, isModule, isNil, isSpecialConst, isSpecialObject, isTaint, isTrue, isUntrusted, kind_of_p, makeMetaClass, makeMetaClass, makeMetaClassBootstrap, method, method, method, method_missing, methods, methods, nil_p, nonFixnumHashCode, nonFixnumHashCode, OBJ_INIT_COPY, objInitCopy, op_cmp, op_equal, op_match, op_not, op_not_equal, op_not_match, private_methods, protected_methods, public_methods, rbClone, rbClone, rbInspect, remove_instance_variable, removeFinalizers, removeInstanceVariable, removeInternalVariable, respond_to_p, respond_to_p, respondsTo, respondsToMissing, respondsToMissing, send, send, send, send, send, setFFIHandle, setFlag, setFrozen, setInstanceVariable, setInternalVariable, setMetaClass, setNativeHandle, setTaint, setUntrusted, setVariable, singleton_method, singleton_method, singleton_method_added, singleton_method_removed, singleton_method_undefined, singleton_methods, singletonClass, specificEval, specificEval, specificEval, specificEval, syncVariables, syncVariables, taint, taint, tainted_p, testFrozen, testFrozen, to_a, to_a, to_s, to_s, toJava, trust, type, untaint, untrust, untrusted_p, validateInstanceVariable, validateInstanceVariable, validateInstanceVariable, variableTableContains, variableTableFastContains, variableTableFastFetch, variableTableFastStore, variableTableFetch, variableTableRemove, variableTableStore, variableTableSync, yieldUnder, yieldUnderMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.jruby.runtime.builtin.IRubyObject
checkStringType19, dup, marshalLiveVariables
-
Constructor Details
-
RubyArgsFile
-
-
Method Details
-
initArgsFile
public static void initArgsFile(ThreadContext context, RubyModule Enumerable, GlobalVariables globals) -
initialize
-
setCurrentLineNumber
Deprecated. -
inplace_mode
-
inplace_mode_set
public static IRubyObject inplace_mode_set(ThreadContext context, IRubyObject recv, IRubyObject test) -
inplace_mode_set
-
argv
-
fileno
-
to_io
-
set_encoding
public static IRubyObject set_encoding(ThreadContext context, IRubyObject recv, IRubyObject encoding) -
set_encoding
public static IRubyObject set_encoding(ThreadContext context, IRubyObject recv, IRubyObject encoding, IRubyObject internalEncoding) -
set_encoding
public static IRubyObject set_encoding(ThreadContext context, IRubyObject recv, IRubyObject encoding, IRubyObject internalEncoding, IRubyObject options) -
internal_encoding
-
external_encoding
-
gets
Read a line. -
readline
Read a line. -
readlines
-
to_a
-
each_byte
-
each_byte
public static IRubyObject each_byte(ThreadContext context, IRubyObject recv, IRubyObject arg, Block block) -
bytes
public static IRubyObject bytes(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) -
each_char
-
chars
-
each_charCommon
-
each_codepoint
-
codepoints
@Deprecated(since="9.4-") public static IRubyObject codepoints(ThreadContext context, IRubyObject recv, Block block) Deprecated. -
each_line
public static IRubyObject each_line(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Invoke a block for each line. -
lines
@Deprecated(since="10.0") public static IRubyObject lines(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Deprecated. -
each
public static IRubyObject each(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) -
file
-
skip
Deprecated. -
skip
-
argf_close
-
close
-
closed_p
-
binmode
-
op_binmode
-
lineno
-
lineno_set
-
tell
-
rewind
-
eof
-
eof_p
-
set_pos
-
seek
-
readchar
-
getbyte
-
read_nonblock
public static IRubyObject read_nonblock(ThreadContext context, IRubyObject recv, IRubyObject[] args) -
readpartial
-
readbyte
-
getc
-
read
-
filename
-
to_s
Deprecated. -
to_s
-
write
-
write
-
write
-
write
public static IRubyObject write(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1) -
write
public static IRubyObject write(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) -
print
-
print
-
print
-
print
public static IRubyObject print(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1) -
print
public static IRubyObject print(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) -
printf
-
putc
-
puts
-
puts
-
puts
-
puts
public static IRubyObject puts(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1) -
puts
public static IRubyObject puts(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2)
-