var search_data = {"index":{"searchIndex":["array","fixnum","hash","kernel","object","string","^()","d()","display()","extract()","fn()","has_shape?()","in_groups_of()","it()","prompt()","random_subarray()","string_length()","to_ostruct()","with()","zip_with()","readme"],"longSearchIndex":["array","fixnum","hash","kernel","object","string","array#^()","object#d()","object#display()","hash#extract()","kernel#fn()","hash#has_shape?()","string#in_groups_of()","object#it()","kernel#prompt()","array#random_subarray()","fixnum#string_length()","hash#to_ostruct()","kernel#with()","array#zip_with()",""],"info":[["Array","","Array.html","",""],["Fixnum","","Fixnum.html","",""],["Hash","","Hash.html","",""],["Kernel","","Kernel.html","",""],["Object","","Object.html","",""],["String","","String.html","",""],["^","Array","Array.html#method-i-5E","(other)","
Returns an array containing elements exclusive between two arrays.\n\n
[1, 2, 3] ^ [1, 2, 4]\n#=> [3, 4]\n\n"],["d","Object","Object.html#method-i-d","(new_line = true)",""],["display","Object","Object.html#method-i-display","(new_line = true)","
Outputs the object and also returns it. Will use puts
if\nnew_line
is true
and print
\notherwise.\n\n
"foo".display ...\n"],["extract","Hash","Hash.html#method-i-extract","(*ks)","
Returns a new hash only with the specified keys (if present).\n\n
hash = { a: 1, b: 2, c: 3 }\nhash.extract(:b, ...\n"],["fn","Kernel","Kernel.html#method-i-fn","(*funs)","
Composes a list of functions. Functions can be specified as symbols or\nlambdas.\n\n
["foo bar", "baz qux"].map ...\n"],["has_shape?","Hash","Hash.html#method-i-has_shape-3F","(shape)","
Checks if a hash has a certain structure.\n\n
h = { k1: 1, k2: "1" }\nh.has_shape?(k1: Fixnum, k2: String) ...\n"],["in_groups_of","String","String.html#method-i-in_groups_of","(size)","
Returns an array of the string broken down into groups of size
\ncharacters.\n\n
"aabbcc".in_groups_of(2)\n#=> ...\n\n"],["it","Object","Object.html#method-i-it","()","
An identity method that provides access to an object’s self
.\n\n
[1,2,3,4,5,1,2,2,3].group_by(&:it)\n#=> {1=>[1, ...\n\n"],["prompt","Kernel","Kernel.html#method-i-prompt","(text='', conversion=nil)","
Displays a prompt and returns chomped input. Modelled after the Python\nmethod raw_input
, but also can …\n"],["random_subarray","Array","Array.html#method-i-random_subarray","(n=1)","
Generates random subarrays. Uses random numbers and bit-fiddling to assure\nperformant uniform distributions …\n"],["string_length","Fixnum","Fixnum.html#method-i-string_length","()","
Returns the length of the number’s string representation.\n\n
0.string_length\n#=> 1\n123.string_length\n#=> ...\n\n"],["to_ostruct","Hash","Hash.html#method-i-to_ostruct","()","
Recursively converts a Hash
and all nested Hash
es\nto OpenStruct
s. Especially useful for parsing YAML …\n"],["with","Kernel","Kernel.html#method-i-with","(o, &blk)","
A Pascal/ActionScript like with
method. Yields its argument to\nthe provided block and then returns it. …\n"],["zip_with","Array","Array.html#method-i-zip_with","(other, op=nil)","
Zip self
with other
, combining the elements with\nthe provided block or symbol. The resulting array will …\n"],["README","","README_rdoc.html","","
Shenanigans\n
shenanigan (plural shenanigans):\n
Trickery, games; skulduggery. To “call”, “claim” …\n"]]}}