setrlimit

Process.setrlimit(resource, cur_limit, max_limit) â nilProcess.setrlimit(resource, cur_limit) â nil Class Public methods Sets the resource limit of the process. cur_limit means current (soft) limit and max_limit means maximum (hard) limit. If max_limit is not given, cur_limit is used. resource indicates the kind of resource to limit. It should be a symbol such as :CORE, a string such as "CORE" or a constant such as Process::RLIMIT_CORE. The available resou

primary_key=

primary_key=(value) Instance Public methods Sets the name of the primary key column. class Project < ActiveRecord::Base self.primary_key = 'sysid' end You can also define the primary_key method yourself: class Project < ActiveRecord::Base def self.primary_key 'foo_' + super end end Project.primary_key # => "foo_id"

find_index

enum.find_index(value) â int or nilenum.find_index { |obj| block } â int or nilenum.find_index â an_enumerator Instance Public methods Compares each entry in enum with value or passes to block. Returns the index for the first for which the evaluated value is non-false. If no object matches, returns nil If neither block nor argument is given, an enumerator is returned instead. (1..10).find_index { |i| i % 5 == 0 and i % 7 == 0 } #=> nil (1..100).find

new

new(content, options) Class Public methods Creates a new lexer for content. options is an RDoc::Options, only +tab_width is used.

children 2

children(pattern=None) Instance Public methods

join

join(array) Class Public methods Alias for: shelljoin

debug

debug(object) Instance Public methods Returns a YAML representation of object wrapped with <pre> and </pre>. If the object cannot be converted to YAML using to_yaml, inspect will be called instead. Useful for inspecting an object at the time of rendering. @user = User.new({ username: 'testing', password: 'xyz', age: 42}) %> debug(@user) # => <pre class='debug_dump'>--- !ruby/object:User attributes: &nbsp; updated_at: &nbsp; username: testing &nb

data=

data=(arg0) Instance Public methods VOID data value of the node

[]

[](key) Instance Public methods

create_join_table

create_join_table(table_1, table_2, options = {}) Instance Public methods Creates a new join table with the name created using the lexical order of the first two arguments. These arguments can be a String or a Symbol. # Creates a table called 'assemblies_parts' with no id. create_join_table(:assemblies, :parts) You can pass a options hash can include the following keys: :table_name Sets the table name overriding the default :column_options Any extra options you want appende