have_var

have_var(var, headers = nil, opt = "", &b) Instance Public methods Returns whether or not the variable var can be found in the common header files, or within any headers that you provide. If found, a macro is passed as a preprocessor constant to the compiler using the variable name, in uppercase, prepended with HAVE_. To check variables in an additional library, you need to check that library first using have_library(). For example, if have_var('foo') returned true, then the H

layout

layout(layout, conditions = {}) Instance Public methods Specify the layout to use for this class. If the specified layout is a: String the String is the template name Symbol call the method specified by the symbol, which will return the template name false There is no layout true raise an ArgumentError nil Force default layout behavior with inheritance Parameters layout - The layout to use. Options (conditions) :only - A list of actions to apply this layout

rationalize

flt.rationalize([eps]) â rational Instance Public methods Returns a simpler approximation of the value (flt-|eps| <= result <= flt+|eps|). if the optional eps is not given, it will be chosen automatically. 0.3.rationalize #=> (3/10) 1.333.rationalize #=> (1333/1000) 1.333.rationalize(0.01) #=> (4/3) See to_r.

&lt;&lt;

<<(part) Instance Public methods Appends part to the ListItem

new

new(cpu, os) Class Public methods Creates a new HINFO running os on cpu.

coerce

coerce(other) Instance Public methods The coerce method provides support for Ruby type coercion. This coercion mechanism is used by Ruby to handle mixed-type numeric operations: it is intended to find a compatible common type between the two operands of the operator. See also Numeric#coerce.

attributes

attributes(text) Instance Public methods Applies attribute-specific markup to text using RDoc::AttributeManager

safe_constantize

safe_constantize() Instance Public methods safe_constantize tries to find a declared constant with the name specified in the string. It returns nil when the name is not in CamelCase or is not initialized. See ActiveSupport::Inflector#safe_constantize 'Module'.safe_constantize # => Module 'Class'.safe_constantize # => Class 'blargle'.safe_constantize # => nil

fcntl

strio.fcntl Instance Public methods

write

write(data) Instance Public methods Writes data onto the IO