Top Description Fields Constructors Methods
org.jruby.ext.fcntl

public Class FcntlLibrary

extends Object
implements Library
Class Inheritance
All Implemented Interfaces
org.jruby.runtime.load.Library
Imports
java.io.IOException, jnr.constants.Constant, .ConstantSet, org.jruby.Ruby, .RubyFixnum, .RubyModule, org.jruby.runtime.ThreadContext, org.jruby.runtime.load.Library

Populates all the constants for Fcntl from Constantine

Field Summary

Modifier and TypeField and Description
public static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
load(final Ruby runtime, boolean wrap)

Implements org.jruby.runtime.load.Library.load.

private static void
loadConstantSet(ThreadContext context, RubyModule
the module in which we want to define the constants
module
,
String
the name of the constant set from which to get the constants
constantSetName
)

Define all constants from the named jnr-constants set which are defined on the current platform.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

FD_CLOEXECback to summary
public static final int FD_CLOEXEC

Constructor Detail

FcntlLibraryback to summary
public FcntlLibrary()

Method Detail

loadback to summary
public void load(final Ruby runtime, boolean wrap) throws IOException

Implements org.jruby.runtime.load.Library.load.

loadConstantSetback to summary
private static void loadConstantSet(ThreadContext context, RubyModule module, String constantSetName)

Define all constants from the named jnr-constants set which are defined on the current platform.

Parameters
module:RubyModule

the module in which we want to define the constants

constantSetName:String

the name of the constant set from which to get the constants