Top Inners Fields Constructors Methods
org.jruby

public Class RubyArgsFile

extends RubyObject
Class Inheritance
Imports
jnr.posix.FileStat, jnr.posix.util.Platform, org.jruby.anno.JRubyMethod, org.jruby.exceptions.RaiseException, org.jruby.internal.runtime.GlobalVariable, .GlobalVariables, .ValueAccessor, org.jruby.runtime.Arity, .Block, .CallSite, .IAccessor, .JavaSites, .ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.util.ByteList, .StringSupport, .TypeConverter, org.jruby.util.io.Getline, java.io.File, .IOException

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
public static class
public static enum

Field Summary

Modifier and TypeField and Description
private static final Getline.Callback<RubyIO, IRubyObject>
Inherited from org.jruby.RubyObject:
IVAR_INSPECTING_OBJECT_ALLOCATOROBJECT_ALLOCATORREIFYING_OBJECT_ALLOCATOR

Constructor Summary

AccessConstructor and Description
public
RubyArgsFile(Ruby runtime, RubyClass metaClass)

Method Summary

Modifier and TypeMethod and Description
public static void
private static IRubyObject
private static IRubyObject
argfGetlineLoopWithKeywords(ThreadContext context, IRubyObject recv, IRubyObject[] args, int callInfo)

Call argf_getline as in a loop, providing the given keywords state between calls.

private static RubyIO
public static IRubyObject
public static IRubyObject
public static IRubyObject
bytes(final ThreadContext context, IRubyObject recv, IRubyObject[] args, final Block block)

public static IRubyObject
chars(final ThreadContext context, IRubyObject recv, Block block)

public static IRubyObject
public static IRubyObject
public static IRubyObject
codepoints(ThreadContext context, IRubyObject recv, Block block)
Deprecated since 9.4-.

public static IRubyObject
each(final ThreadContext context, IRubyObject recv, IRubyObject[] args, final Block block)

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

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

public static IRubyObject
each_char(final ThreadContext context, IRubyObject recv, Block block)

public static IRubyObject
public static IRubyObject
public static IRubyObject
each_line(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)

Invoke a block for each line.

public static IRubyObject
eof(ThreadContext context, IRubyObject recv)

public static IRubyObject
public static IRubyObject
public static IRubyObject
public static IRubyObject
public static IRubyObject
public static IRubyObject
public static IRubyObject
private static RubyIO
getCurrentDataFile(ThreadContext context, String errorMessage)

private static IRubyObject
getPartial(ThreadContext context, IRubyObject recv, IRubyObject[] args, boolean nonBlocking)

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

Read a line.

public static void
initArgsFile(ThreadContext context, RubyModule Enumerable, GlobalVariables globals)

public IRubyObject
public static IRubyObject
public static IRubyObject
public IRubyObject
public static IRubyObject
private static boolean
isClosed(ThreadContext context, IRubyObject currentFile)

private static boolean
public static IRubyObject
public static IRubyObject
public static IRubyObject
lines(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)
Deprecated since 10.0.

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

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

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

Read a line.

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

public static IRubyObject
public static IRubyObject
set_encoding(ThreadContext context, IRubyObject recv, IRubyObject encoding, IRubyObject internalEncoding)

public static IRubyObject
set_encoding(ThreadContext context, IRubyObject recv, IRubyObject encoding, IRubyObject internalEncoding, IRubyObject options)

public static IRubyObject
public static void
setCurrentLineNumber(IRubyObject recv, int newLineNumber)
Deprecated

private static IRubyObject
private static JavaSites.ArgfSites
sites(ThreadContext context)

Hides org.jruby.RubyObject.sites.

Retrieve the call sites for this class.

public static IRubyObject
skip(IRubyObject recv)
Deprecated since 10.0.

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

public static IRubyObject
public static IRubyObject
to_s(IRubyObject recv)
Deprecated since 10.0.

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

public static IRubyObject
public static IRubyObject
public static IRubyObject
public static IRubyObject
Inherited from org.jruby.RubyObject:
attachToObjectSpacecallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitcallInitconvertToTypedigdig1dig2eqlInternalequalInternalequalsfinishObjectClassgetNativeClassIndexhashCodeinspectop_eqqputsspecificEvaltoRubyStringtoString