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 class
static enum
Nested classes/interfaces inherited from class org.jruby.RubyObject
RubyObject.Data
Nested 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_ALLOCATOR
Fields 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, varTableStamp
Fields inherited from interface org.jruby.runtime.builtin.IRubyObject
NULL_ARRAY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
argf_close
(ThreadContext context, IRubyObject file) static IRubyObject
argv
(ThreadContext context, IRubyObject recv) static IRubyObject
binmode
(ThreadContext context, IRubyObject recv) static IRubyObject
bytes
(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) static IRubyObject
chars
(ThreadContext context, IRubyObject recv, Block block) static IRubyObject
close
(ThreadContext context, IRubyObject recv) static IRubyObject
closed_p
(ThreadContext context, IRubyObject recv) static IRubyObject
codepoints
(ThreadContext context, IRubyObject recv, Block block) Deprecated.static IRubyObject
each
(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) static IRubyObject
each_byte
(ThreadContext context, IRubyObject recv, Block block) static IRubyObject
each_byte
(ThreadContext context, IRubyObject recv, IRubyObject arg, Block block) static IRubyObject
each_char
(ThreadContext context, IRubyObject recv, Block block) static IRubyObject
each_charCommon
(ThreadContext context, IRubyObject recv, Block block) static IRubyObject
each_codepoint
(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
eof_p
(ThreadContext context, IRubyObject recv) static IRubyObject
external_encoding
(ThreadContext context, IRubyObject recv) static IRubyObject
file
(ThreadContext context, IRubyObject recv) static IRubyObject
filename
(ThreadContext context, IRubyObject recv) static IRubyObject
fileno
(ThreadContext context, IRubyObject recv) static IRubyObject
getbyte
(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
(ThreadContext context, RubyModule Enumerable, GlobalVariables globals) initialize
(ThreadContext context, IRubyObject[] args) static IRubyObject
inplace_mode
(ThreadContext context, IRubyObject recv) inplace_mode_set
(ThreadContext context, IRubyObject test) static IRubyObject
inplace_mode_set
(ThreadContext context, IRubyObject recv, IRubyObject test) static IRubyObject
internal_encoding
(ThreadContext context, IRubyObject recv) static IRubyObject
lineno
(ThreadContext context, IRubyObject recv) static IRubyObject
lineno_set
(ThreadContext context, IRubyObject recv, IRubyObject line) static IRubyObject
lines
(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block) Deprecated.static IRubyObject
op_binmode
(ThreadContext context, IRubyObject recv) static IRubyObject
print
(ThreadContext context, IRubyObject recv) static IRubyObject
print
(ThreadContext context, IRubyObject recv, IRubyObject arg0) static IRubyObject
print
(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObject
print
(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1) static IRubyObject
print
(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) static IRubyObject
printf
(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObject
putc
(ThreadContext context, IRubyObject recv, IRubyObject arg0) static IRubyObject
puts
(ThreadContext context, IRubyObject recv) static IRubyObject
puts
(ThreadContext context, IRubyObject recv, IRubyObject arg0) static IRubyObject
puts
(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObject
puts
(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1) static IRubyObject
puts
(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1, IRubyObject arg2) static IRubyObject
read
(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObject
read_nonblock
(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObject
readbyte
(ThreadContext context, IRubyObject recv) static IRubyObject
readchar
(ThreadContext context, IRubyObject recv) static IRubyObject
readline
(ThreadContext context, IRubyObject recv, IRubyObject[] args) Read a line.static IRubyObject
readlines
(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObject
readpartial
(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_encoding
(ThreadContext context, IRubyObject recv, IRubyObject encoding) static IRubyObject
set_encoding
(ThreadContext context, IRubyObject recv, IRubyObject encoding, IRubyObject internalEncoding) static IRubyObject
set_encoding
(ThreadContext context, IRubyObject recv, IRubyObject encoding, IRubyObject internalEncoding, IRubyObject options) static IRubyObject
set_pos
(ThreadContext context, IRubyObject recv, IRubyObject offset) static void
setCurrentLineNumber
(IRubyObject recv, int newLineNumber) Deprecated.static IRubyObject
skip
(IRubyObject recv) Deprecated.static IRubyObject
skip
(ThreadContext context, IRubyObject recv) static IRubyObject
tell
(ThreadContext context, IRubyObject recv) static IRubyObject
to_a
(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObject
to_io
(ThreadContext context, IRubyObject recv) static IRubyObject
to_s
(IRubyObject recv) Deprecated.static IRubyObject
to_s
(ThreadContext context, IRubyObject recv) static IRubyObject
write
(ThreadContext context, IRubyObject recv) static IRubyObject
write
(ThreadContext context, IRubyObject recv, IRubyObject arg0) static IRubyObject
write
(ThreadContext context, IRubyObject recv, IRubyObject[] args) static IRubyObject
write
(ThreadContext context, IRubyObject recv, IRubyObject arg0, IRubyObject arg1) static IRubyObject
write
(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, toString
Methods 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, yieldUnder
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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)
-