rand 2

prng.rand â floatprng.rand(max) â number Instance Public methods When max is an Integer, rand returns a random integer greater than or equal to zero and less than max. Unlike Kernel#rand, when max is a negative integer or zero, rand raises an ArgumentError. prng = Random.new prng.rand(100) # => 42 When max is a Float, rand returns a random floating point number between 0.0 and max, including 0.0 and excluding max. prng.rand(1.5) # => 1.4600282860034115 When max

action_methods

action_methods() Class Public methods A list of method names that should be considered actions. This includes all public instance methods on a controller, less any internal methods (see internal_methods), adding back in any methods that are internal, but still exist on the class itself. Finally, hidden_actions are removed. Returns Set - A set of all methods that should be considered actions.

generate_class

generate_class(klass, io = STDOUT) Instance Public methods

__BLT_EPS_item_boolval_optkeys

__BLT_EPS_item_boolval_optkeys(id) Instance Public methods Alias for: __item_boolval_optkeys

trancate

trancate(len) Instance Public methods

encode

encode(value, options = nil) Class Public methods Dumps objects in JSON (JavaScript Object Notation). See www.json.org for more info. ActiveSupport::JSON.encode({ team: 'rails', players: '36' }) # => "{\"team\":\"rails\",\"players\":\"36\"}"

parentNode

parentNode() Instance Public methods IXMLDOMNode parentNode parent of the node

itemtype

itemtype(tag) Instance Public methods

create

create(hkey, subkey, desired = KEY_ALL_ACCESS, opt = REG_OPTION_RESERVED) Class Public methods â ::create(key, subkey, desired = KEY_ALL_ACCESS, opt = REG_OPTION_RESERVED) â ::create(key, subkey, desired = KEY_ALL_ACCESS, opt = REG_OPTION_RESERVED) { |reg| ⦠} Create or open the registry key subkey under key. You can use predefined key HKEY_* (see Constants) If subkey is already exists, key is opened and #created? method will return false. If block is given, the key is closed auto

map

ary.map { |item| block } â new_aryary.map â Enumerator Instance Public methods Invokes the given block once for each element of self. Creates a new array containing the values returned by the block. See also Enumerable#collect. If no block is given, an Enumerator is returned instead. a = [ "a", "b", "c", "d" ] a.map { |x| x + "!" } #=> ["a!", "b!", "c!", "d!"] a #=> ["a", "b", "c", "d"]