(function() { fancy.fdoc({title:"Fancy Documentation", methods:{"System#do:":{doc:"
Runs the given string as a system() command.
\n\n\n\n", args:["command_str"]}, "Fancy Package Specification#add_dependency:":{doc:"Forward to message add_dependency:version:
\n\n\n\n", args:["name"]}, "StandardError#initialize:":{doc:"Creates a new Exception with a given message.
\n\n \n\n", args:["msg"]}, "String#:raise!":{doc:"Raises a new StdError with self as the message.
\n\n\n\n", args:[]}, "Object#for_options:do:":{doc:"Runs a given block if any of the given options is in ARGV.
\n\n\n\n", args:["op_names", "block"]}, "Object#for_option:do:":{doc:"Runs a given block if an option is in ARGV.
\n\n\n\n", args:["op_name", "block"]}, "System#pipe:":{doc:"Runs the given string as a popen() call and returns a IO handle\nthat can be read from
\n\n\n\n", args:["command_str"]}, "StandardError#:raise!":{doc:"Raises (throws) an Exception to be caught somewhere up the\ncallstack.
\n\n\n\n", args:[]}, "System#piperead:":{doc:"Runs the given string as a popen() call and returns the output\nof the call as a string.
\n\n\n\n", args:["command_str"]}, "System#:exit":{doc:"Exit the running Fancy process.
\n\n\n\n", args:[]}, "Fancy FDoc JSON#write:":{doc:"Forward to message write:call:
\n\n\n\n", args:["filename"]}, "Fancy Package Specification#add_ruby_dependency:":{doc:"Forward to message add_ruby_dependency:version:
\n\n\n\n", args:["gem_name"]}, "System#sleep:":{doc:"Sets the Fancy process for a given amount of milliseconds to sleep.
\n\n\n\n", args:["n_ms"]}, "StandardError#:initialize":{doc:"Creates a new Exception with an empty message.
\n\n\n\n", args:[]}}, date:"Wed Feb 16 03:13:08 -0800 2011", classes:{"File":{doc:"Instances of File represent files in the filesystem of the operating\nsystem on which Fancy is running.
\n\n\n\n", methods:{"lchown":{file:"kernel/common/file.rb", lines:[245, 245]}, "split":{file:"kernel/common/file.rb", lines:[765, 765]}, "delete":{file:"kernel/common/file.rb", lines:[859, 859]}, "modes_str:":{doc:"Returns the appropriate String
representation of the modes_arr
.
Reads all the contens (in ASCII mode) of a given file and returns\nthem as an Array of lines being read.
\n\n\n\n", arg:["filename"], file:"lib/file.fy", lines:[24, 24]}, "delete:":{doc:"Deletes a File
with a given filename
.
Renames a File
on the filesystem.
Similar to open:modes:with: but takes no Block
argument to be\ncalled with the File
instance.\nReturns the opened File
instead and expects the caller to close
it manually.
Indicates if the File
with the given filename
exists.
Opens a File with a given filename
, a modes_arr
(Array
) and a block
.
E.g. to open a File with read access and read all lines and print them to STDOUT:
\n\nFile open: \"foo.txt\" modes: [:read] with: |f| {
\n\n{ f eof? } while_false: {\n f readln println\n}\n
\n\n}
\n\n \n\n", arg:["filename", "modes_arr", "block"], file:"lib/rbx/file.fy", lines:[32, 32]}, "executable?":{file:"kernel/common/file.rb", lines:[329, 329]}, "setgid?":{file:"kernel/common/file.rb", lines:[926, 926]}, "__class_init__":{file:"lib/file.fy", lines:[5, 5]}, "directory?:":{doc:"Indicates, if a given path
refers to a Directory
.
Writes a newline character to the File
.
Writes a given argument as a String followed by a newline into the\nFile.
\n\n\n\n", arg:["x"], file:"lib/file.fy", lines:[40, 40]}, "chown":{file:"kernel/common/file.rb", lines:[974, 974]}, ":modes":{doc:"Returns the File
access modes Array
.
Indicates, if a File
is opened.
Sets the File
access modes Array
.
Writes a given String
to a File
.
Same as File#writeln:.
\n\n\n\n", arg:["x"], file:"lib/file.fy", lines:[53, 53]}, ":closed?":{file:"kernel/common/io.rb", lines:[760, 760]}, "flock":{file:"kernel/common/file.rb", lines:[982, 982]}, "inspect":{file:"kernel/common/file.rb", lines:[1011, 1011]}, "stat":{file:"kernel/common/file.rb", lines:[996, 996]}, "truncate":{file:"kernel/common/file.rb", lines:[1000, 1000]}, "path":{}, "print:":{doc:"Same as File#write:.
\n\n\n\n", arg:["x"], file:"lib/file.fy", lines:[47, 47]}, "reopen":{file:"kernel/common/file.rb", lines:[965, 965]}, ":close":{doc:"Closes an opened File
.
Indicates, if a File
is a Directory
.
A simple Set data structure class.
\n\n\n\n", methods:{"__class_init__":{file:"lib/set.fy", lines:[2, 2]}, ":[]":{doc:"Initialize a new Array with a given Array of values.
\n\n\n\n", arg:["arr"], file:"lib/set.fy", lines:[26, 26]}}, ancestors:["Set", "FancyEnumerable", "Object", "Object", "Kernel"], instance_methods:{"initialize:":{doc:"Initialize a new Set with a given Array of values.
\n\n\n\n", arg:["arr"], file:"lib/set.fy", lines:[9, 9]}, ":values":{}, ":initialize":{doc:"Initialize a new empty Set.
\n\n\n\n", arg:[], file:"lib/set.fy", lines:[14, 14]}, "unknown_message:with_params:":{file:"lib/set.fy", lines:[45, 45]}, ":==":{doc:"Indicates, if two Sets are equal.
\n\n\n\n", arg:["other"], file:"lib/set.fy", lines:[22, 22]}, "each:":{doc:"Calls a given Block for each element of the Set.
\n\n\n\n", arg:["block"], file:"lib/set.fy", lines:[41, 41]}, "includes?:":{doc:"Indicates, if the Set includes a given value.
\n\n\n\n", arg:["value"], file:"lib/set.fy", lines:[36, 36]}, ":to_s":{doc:"Returns a String representation of a Set.
\n\n\n\n", arg:[], file:"lib/set.fy", lines:[54, 54]}, ":inspect":{doc:"Returns a detailed String representation of a Set.
\n\n\n\n", arg:[], file:"lib/set.fy", lines:[59, 59]}, ":<<":{doc:"Insert a value into the Set.
\n\n\n\n", arg:["value"], file:"lib/set.fy", lines:[31, 31]}, "method_missing":{}}}, "Fancy Package":{doc:"The Fancy Package System.
\n\nThis class is used for installing and uninstalling fancy packages on\nthe system.
\n\nExample:
\n\n$ fancy install bakkdoor/mongo.fy\n
\n\nWill install the mongo.fy package from http://github.com/bakkdoor/mongo.fy\nin the latest released version or get the current HEAD (master\nbranch) revision.
\n\nYou can then load the package in your source file via
\n\nrequire: \"mongo.fy\"\n
\n\n\n\n", methods:{":add_to_loadpath":{doc:"Adds the Fancy Package install dir to the loadpath so you can\neasily require:
packages into your code.
Installs a package with a given name.\nExpects package_name to be a string in the form of:
\n\nuser/repo\n
\n\nWhich would get the package code from github.com/user/repo
\n\n\n\n", arg:["package_name"], file:"lib/package.fy", lines:[37, 37]}}, ancestors:["Fancy Package", "Object", "Kernel"], instance_methods:{}}, "Fancy Package RubyDependency":{doc:"Same as Fancy
Package
Dependency
, just for rubygem packages.
Number is a mixin-class for all number values (integer & floats for\nnow).
\n\n\n\n", methods:{"__class_init__":{file:"lib/number.fy", lines:[5, 5]}}, ancestors:["Number", "Object", "Kernel"], instance_methods:{":negate":{doc:"Negates a Number (-1 becomes 1 and vice versa).
\n\n\n\n", arg:[], file:"lib/number.fy", lines:[52, 52]}, ":abs":{doc:"Returns the absolute (positive) value of a Number.
\n\n\n\n", arg:[], file:"lib/number.fy", lines:[47, 47]}, ":even?":{doc:"Indicates, if a Number is even.
\n\n\n\n", arg:[], file:"lib/number.fy", lines:[58, 58]}, ":to_num":{file:"lib/number.fy", lines:[68, 68]}, ":odd?":{doc:"Indicates, if a Number is odd.
\n\n\n\n", arg:[], file:"lib/number.fy", lines:[64, 64]}, "downto:":{file:"lib/number.fy", lines:[18, 18]}, "upto:":{file:"lib/number.fy", lines:[8, 8]}, ":squared":{doc:"Returns the square of a Number.
\n\n\n\n", arg:[], file:"lib/number.fy", lines:[30, 30]}, ":doubled":{doc:"Returns the double value of a Number.
\n\n\n\n", arg:[], file:"lib/number.fy", lines:[36, 36]}}}, "Array":{doc:"Array class.\nArrays are dynamically resizable containers with a constant-time\nindex-based access to members.
\n\n\n\n", methods:{"allocate":{file:"kernel/bootstrap/array.rb", lines:[11, 11]}, "yaml_tag_subclasses?":{file:"lib/yaml/tag.rb", lines:[null, null]}, "new:":{doc:"Creates a new Array with a given size (default value is nil).
\n\n\n\n", arg:["size"], file:"lib/rbx/array.fy", lines:[22, 22]}, "[]":{file:"kernel/common/array.rb", lines:[22, 22]}, "coerce_into_array":{file:"kernel/bootstrap/array.rb", lines:[20, 20]}, "__class_init__":{file:"lib/yaml/rubytypes.rb", lines:[104, 104]}, ":===":{file:"lib/array.fy", lines:[223, 223]}, "new:with:":{doc:"Creates a new Array with a given size and default-value.
\n\n\n\n", arg:["size", "default"], file:"lib/rbx/array.fy", lines:[16, 16]}}, ancestors:["Array", "FancyEnumerable", "Object", "Enumerable", "Object", "Kernel"], instance_methods:{"remove_if:":{doc:"Like Array
remove:
, but taking a condition Block
.\nRemoves all elements that meet the given condition Block
.
Returns an Array of all indices of this item. Empty Array if item does not occur.
\n\n \n\n", arg:["item"], file:"lib/rbx/array.fy", lines:[143, 143]}, "each:":{doc:"Calls a given Block
with each element in the Array
.
Returns a new Array with all the elements which yield nil or false\nwhen called with the given Block.
\n\n\n\n", arg:["block"], file:"lib/rbx/array.fy", lines:[243, 243]}, "join:":{doc:"Joins all elements in the Array by a given String.\nE.g.: [1,2,3] join: ', ' # => '1,2,3'
\n\n\n\n", arg:["join_str"], file:"lib/rbx/array.fy", lines:[257, 257]}, "remove_at:":{doc:"Removes an element at a given index.\nIf given an Array of indices, removes all the elements with these indices.\nReturns the deleted object if an index was given, the last deleted object for an Array given.
\n\n\n\n", arg:["index"], file:"lib/rbx/array.fy", lines:[85, 85]}, "&":{file:"kernel/common/array.rb", lines:[364, 364]}, "permutation":{file:"kernel/common/array.rb", lines:[1195, 1195]}, "start":{}, "unshift":{file:"kernel/common/array.rb", lines:[1707, 1707]}, "flatten":{file:"kernel/common/array.rb", lines:[845, 845]}, "insert":{file:"kernel/common/array.rb", lines:[980, 980]}, "uniq":{file:"kernel/common/array.rb", lines:[1618, 1618]}, "sort_inplace":{file:"kernel/common/array.rb", lines:[1542, 1542]}, "collect":{file:"kernel/bootstrap/array.rb", lines:[87, 87]}, "reverse_each":{file:"kernel/common/array.rb", lines:[1385, 1385]}, "collect!":{file:"kernel/bootstrap/array.rb", lines:[97, 97]}, "inspect":{file:"kernel/common/array.rb", lines:[998, 998]}, "to_s":{file:"kernel/common/array.rb", lines:[1590, 1590]}, "new_range":{file:"kernel/bootstrap/array.rb", lines:[16, 16]}, ":reverse!":{file:"kernel/common/array.rb", lines:[1373, 1373]}, "join":{file:"kernel/common/array.rb", lines:[1016, 1016]}, "|":{file:"kernel/common/array.rb", lines:[377, 377]}, "rindex":{file:"kernel/common/array.rb", lines:[1404, 1404]}, "size":{}, "total=":{}, "replace":{file:"kernel/common/array.rb", lines:[1354, 1354]}, ":join":{doc:"Joins all elements with the empty String
.
[\"hello\", \"world\", \"!\"] join # => \"hello, world!\"\n
\n\n \n\n", arg:[], file:"lib/array.fy", lines:[134, 134]}, "first":{file:"kernel/common/array.rb", lines:[834, 834]}, ":second":{doc:"Returns the second element in the Array
\n\n\n\n", arg:[], file:"lib/array.fy", lines:[33, 33]}, ":shuffle":{file:"kernel/common/array.rb", lines:[1517, 1517]}, "include?":{file:"kernel/common/array.rb", lines:[929, 929]}, ":clear":{file:"kernel/common/array.rb", lines:[517, 517]}, "uniq!":{file:"kernel/common/array.rb", lines:[1623, 1623]}, "[]=":{file:"kernel/common/array.rb", lines:[187, 187]}, ":compact!":{doc:"Removes all nil-value elements in place.
\n\n \n\n\n\n", arg:[], file:"lib/array.fy", lines:[156, 156]}, "__matches_when__":{file:"kernel/bootstrap/array.rb", lines:[80, 80]}, "==":{file:"kernel/common/array.rb", lines:[469, 469]}, "cycle":{file:"kernel/common/array.rb", lines:[585, 585]}, "pop":{file:"kernel/common/array.rb", lines:[1248, 1248]}, ":last":{file:"kernel/common/array.rb", lines:[1066, 1066]}, ":product":{doc:"Calculates the product of all the elements in the Enumerable\n(assuming them to be Numbers (implementing '+' & '*')).
\n\n\n\n", arg:[], file:"lib/rbx/array.fy", lines:[273, 273]}, "at:":{doc:"Returns the element in the Array
at a given index.
Returns an Array
of all the indices of an Array
.
Inserts a given object at a given index (position) in the Array.
\n\n \n\n\n\n", arg:["idx", "obj"], file:"lib/rbx/array.fy", lines:[109, 109]}, "to_ary":{file:"kernel/common/array.rb", lines:[1584, 1584]}, "concat":{file:"kernel/common/array.rb", lines:[573, 573]}, "__marshal__":{file:"kernel/common/marshal.rb", lines:[147, 147]}, ":rest":{doc:"Returns all elements except the first one as a new Array.
\n\n\n\n", arg:[], file:"lib/array.fy", lines:[48, 48]}, ":println":{doc:"Prints each element on a seperate line.
\n\n\n\n", arg:[], file:"lib/array.fy", lines:[189, 189]}, "find:":{doc:"Returns the item, if it's in the Array or nil (if not found).
\n\n \n\n", arg:["item"], file:"lib/array.fy", lines:[81, 81]}, "find_by:":{doc:"Like find: but takes a block that gets called with each element to find it.
\n\n \n\n", arg:["block"], file:"lib/array.fy", lines:[91, 91]}, "empty?":{file:"kernel/common/array.rb", lines:[716, 716]}, ":size":{}, "any?:":{doc:"Takes condition-block and returns true
if any element meets it.
Returns a new Array
that contains the elements of self num times\nin a row.
Clones (shallow copy) the Array.
\n\n\n\n", arg:[], file:"lib/rbx/array.fy", lines:[42, 42]}, "reject!:":{doc:"Same as Array#reject: but doing so in-place (destructive).
\n\n\n\n", arg:["block"], file:"lib/rbx/array.fy", lines:[249, 249]}, ":[]":{doc:"Given an Array of 2 Numbers, it returns the sub-array between the\ngiven indices.\nIf given a Number, returns the element at that index.
\n\n\n\n", arg:["index"], file:"lib/array.fy", lines:[23, 23]}, ":<<":{file:"kernel/common/array.rb", lines:[354, 354]}, "select:":{doc:"Returns a new Array with all the elements in self that yield a\ntrue-ish value when called with the given Block.
\n\n \n\n", arg:["block"], file:"lib/rbx/array.fy", lines:[212, 212]}, ":third":{doc:"Returns the third element in the Array
\n\n\n\n", arg:[], file:"lib/array.fy", lines:[38, 38]}, "zip":{file:"kernel/common/array.rb", lines:[1689, 1689]}, "includes?:":{doc:"Indicates, if an Array includes a given value.
\n\n\n\n", arg:["obj"], file:"lib/rbx/array.fy", lines:[37, 37]}, "values_at":{file:"kernel/common/array.rb", lines:[1641, 1641]}, "indexes":{file:"kernel/common/array.rb", lines:[958, 958]}, ":fourth":{doc:"Returns the fourth element in the Array
\n\n\n\n", arg:[], file:"lib/array.fy", lines:[43, 43]}, "*":{file:"kernel/common/array.rb", lines:[388, 388]}, "transpose":{file:"kernel/common/array.rb", lines:[1598, 1598]}, "eql?":{file:"kernel/common/array.rb", lines:[702, 702]}, "compact":{file:"kernel/common/array.rb", lines:[552, 552]}, "assoc":{file:"kernel/common/array.rb", lines:[490, 490]}, "shift":{file:"kernel/common/array.rb", lines:[1455, 1455]}, "index":{file:"kernel/common/array.rb", lines:[946, 946]}, "reverse!":{file:"kernel/common/array.rb", lines:[1373, 1373]}, "map":{file:"kernel/bootstrap/array.rb", lines:[87, 87]}, "sort!":{file:"kernel/common/array.rb", lines:[1542, 1542]}, "indices":{file:"kernel/common/array.rb", lines:[958, 958]}, ":==":{file:"kernel/common/array.rb", lines:[469, 469]}, "flatten!":{file:"kernel/common/array.rb", lines:[852, 852]}, "each_index":{file:"kernel/common/array.rb", lines:[686, 686]}, "-":{file:"kernel/common/array.rb", lines:[424, 424]}, "to_yaml":{file:"lib/yaml/rubytypes.rb", lines:[107, 107]}, "select!:":{doc:"Removes all elements in place, that don't meet the condition.
\n\n \n\n", arg:["condition"], file:"lib/array.fy", lines:[145, 145]}, "push":{file:"kernel/common/array.rb", lines:[1311, 1311]}, "append:":{doc:"Appends another Array onto this one.
\n\n\n\n", arg:["arr"], file:"lib/rbx/array.fy", lines:[28, 28]}, "combination":{file:"kernel/common/array.rb", lines:[530, 530]}, "to_a":{file:"kernel/common/array.rb", lines:[1575, 1575]}, "all?:":{doc:"Takes condition-block and returns true
if all elements meet it.
Removes all occurances of obj in the Array.
\n\n \n\n", arg:["obj"], file:"lib/array.fy", lines:[168, 168]}, "reject":{file:"kernel/common/array.rb", lines:[1334, 1334]}, "each":{file:"kernel/bootstrap/array.rb", lines:[64, 64]}, ":sort":{file:"kernel/common/array.rb", lines:[1537, 1537]}, "taguri":{file:"lib/yaml/tag.rb", lines:[64, 64]}, "shuffle":{file:"kernel/common/array.rb", lines:[1517, 1517]}, "slice":{file:"kernel/common/array.rb", lines:[92, 92]}, ":+":{doc:"Returns concatenation with another Array
.
Iterate over all elements in Array. Calls a given Block with each element and its index.
\n\n \n\n", arg:["block"], file:"lib/rbx/array.fy", lines:[118, 118]}, ":>>":{doc:"Returns new Array with elements of other_arr appended to these.
\n\n \n\n", arg:["other_arr"], file:"lib/array.fy", lines:[121, 121]}, "yaml_initialize":{file:"lib/yaml/rubytypes.rb", lines:[null, null]}, "last:":{doc:"Returns new Array with last n elements specified.
\n\n \n\n", arg:["count"], file:"lib/rbx/array.fy", lines:[181, 181]}, ":to_s":{doc:"Returns String
representation of Array
.
Returns the index of an item (or nil, if it isn't in the Array
).
Same as select:, just gets also called with an additional argument\nfor each element's index value.
\n\n\n\n", arg:["block"], file:"lib/rbx/array.fy", lines:[227, 227]}, "+":{file:"kernel/common/array.rb", lines:[416, 416]}, ":first":{doc:"Returns the first element in the Array.
\n\n\n\n", arg:[], file:"lib/array.fy", lines:[28, 28]}, "__rescue_match__":{file:"kernel/common/array.rb", lines:[1935, 1935]}, "tuple":{}, "to_generator":{file:"kernel/common/array.rb", lines:[1962, 1962]}, "delete_at":{file:"kernel/common/array.rb", lines:[636, 636]}, "last":{file:"kernel/common/array.rb", lines:[1066, 1066]}, "values_at:":{doc:"Returns new Array
with elements at given indices.
Returns sub-array starting at from: and going to to:
\n\n \n\n", arg:["from", "to"], file:"lib/rbx/array.fy", lines:[163, 163]}, "taguri=":{}, "product":{file:"kernel/common/array.rb", lines:[1282, 1282]}, ":sum":{doc:"Calculates the sum of all the elements in the Enumerable\n(assuming them to be Numbers (implementing '+' & '*')).
\n\n\n\n", arg:[], file:"lib/rbx/array.fy", lines:[266, 266]}, "choice":{file:"kernel/common/array.rb", lines:[1430, 1430]}, "total":{}, "shuffle!":{file:"kernel/common/array.rb", lines:[1522, 1522]}, ":=?":{doc:"Compares two Arrays where order does not matter.
\n\n \n\n", arg:["other"], file:"lib/array.fy", lines:[64, 64]}}}, "FancySpec":{doc:"The FancySpec class is used for defining FancySpec testsuites.\nHave a look at the tests/ directory to see some examples.
\n\n\n\n", methods:{"describe:for:with:":{file:"lib/fancy_spec.fy", lines:[19, 19]}, "__class_init__":{file:"lib/fancy_spec.fy", lines:[5, 5]}, "describe:with:":{file:"lib/fancy_spec.fy", lines:[13, 13]}, "new:test_obj:":{}}, ancestors:["FancySpec", "Object", "Kernel"], instance_methods:{"initialize:":{file:"lib/fancy_spec.fy", lines:[10, 10]}, "it:for:when:":{file:"lib/fancy_spec.fy", lines:[30, 30]}, ":run":{file:"lib/fancy_spec.fy", lines:[42, 42]}, "initialize:test_obj:":{file:"lib/fancy_spec.fy", lines:[9, 9]}, "it:when:":{file:"lib/fancy_spec.fy", lines:[25, 25]}}}, "Rubinius Tuple":{doc:"Tuples are fixed-size containers providing index-based access to its\nelements.
\n\n\n\n", methods:{"allocate":{file:"kernel/bootstrap/tuple.rb", lines:[5, 5]}, "new":{file:"kernel/bootstrap/tuple.rb", lines:[10, 10]}, "create_weakref":{file:"kernel/bootstrap/tuple.rb", lines:[162, 162]}, "[]":{file:"kernel/common/tuple.rb", lines:[14, 14]}, "pattern":{file:"kernel/bootstrap/tuple.rb", lines:[15, 15]}, "__class_init__":{file:"lib/tuple.fy", lines:[5, 5]}, ":===":{doc:"Matches Tuple
class against an object.\nIf the given object is a Tuple instance, return a Tuple object.
Initializes a new Tuple
with a given amount of element slots.\nE.g. if size
is 2
, creates a 2-Tuple.
Returns the second element in the Tuple
.
Returns the first element in the Tuple
.
Compares two Tuple
s with each other.
Returns an element at a given indes.\nPossibly throws an Rubinius
ObjectBoundsExceededError
.
Calls a given Block
with each element in the Tuple
.
Sets a value for a given index within a Tuple
.
Returns a String
representation of a Tuple
Forwards to Tuple
#at:.
Returns the third element in the Tuple
.
Returns the fourth element in the Tuple
Instances of Directory
represent directories in the filesystem of\nthe operating system, in which Fancy is being run.
Deletes a directory with a given name, if it's empty.
\n\n \n\n", arg:["dirname"], file:"lib/rbx/directory.fy", lines:[45, 45]}, "create:":{doc:"Creates a new Directory
on the filesystem, possibly throwing\nIOError Exceptions that might occur.
Indicates, if a Directory exists with a given pathname.
\n\n \n\n", arg:["dirname"], file:"lib/directory.fy", lines:[15, 15]}, "create!:":{doc:"Creates a new Directory
on the filesystem, ignoring any\nExceptions that might occur.\nBasically works like running mkdir -p
on the shell.
The Block class (also BlockEnvironment) is the class of all\nBlock-literal values.\nA Block is a piece of unevaluated code, that can be passed around as\nany other value and evaluated by calling the +call+ or +call:+ methods.
\n\nBlocks also work properly with their enclosing environment in that\nthey preserve any local variables that get used within the Block,\neven if the context in which they got defined has been destroyed.\n=> Blocks are proper closures.
\n\nSee: http://en.wikipedia.org/wiki/Closure_(computer_science) for\nmore information.
\n\n\n\n", methods:{"allocate":{file:"kernel/bootstrap/block_environment.rb", lines:[5, 5]}, "of_sender":{file:"kernel/bootstrap/block_environment.rb", lines:[20, 20]}, "__class_init__":{file:"lib/block.fy", lines:[15, 15]}}, ancestors:["Rubinius BlockEnvironment", "Object", "Kernel"], instance_methods:{"scope=":{}, "line":{file:"kernel/common/block_environment.rb", lines:[69, 69]}, "scope":{}, "call:with_receiver:":{}, "while_nil:":{doc:"Same as Block#while_false:
\n\n\n\n", arg:["block"], file:"lib/block.fy", lines:[35, 35]}, "call:":{}, "until_do:":{doc:"Calls a given Block as long as self
returns nil
or false
.
Calls itself if the given object is true-ish.
\n\n\n\n", arg:["obj"], file:"lib/block.fy", lines:[81, 81]}, "method=":{}, "call_under":{file:"kernel/bootstrap/block_environment.rb", lines:[15, 15]}, ":&&":{doc:"Short-circuiting && (boolean AND).
\n\n\n\n", arg:["other_block"], file:"lib/block.fy", lines:[63, 63]}, "arity":{file:"kernel/common/block_environment.rb", lines:[56, 56]}, ":===":{file:"lib/block.fy", lines:[90, 90]}, "from_eval!":{file:"kernel/common/block_environment.rb", lines:[42, 42]}, "under_context":{file:"kernel/common/block_environment.rb", lines:[20, 20]}, "file":{file:"kernel/common/block_environment.rb", lines:[65, 65]}, "local_count":{}, "top_scope":{}, "proc_environment":{}, ":argcount":{doc:"Returns the amount of arguments (arity) a Block takes.
\n\n\n\n", arg:[], file:"lib/rbx/block.fy", lines:[8, 8]}, "call":{file:"kernel/bootstrap/block_environment.rb", lines:[10, 10]}, "while_do:":{}, "proc_environment=":{}, "top_scope=":{}, "while_true:":{}, ":||":{doc:"Short-circuiting || (boolean OR).
\n\n\n\n", arg:["other_block"], file:"lib/block.fy", lines:[75, 75]}, "method":{}, ":call":{file:"kernel/bootstrap/block_environment.rb", lines:[10, 10]}, "from_proc?":{file:"kernel/common/block_environment.rb", lines:[16, 16]}, "call_with_receiver:":{}, "metadata_container=":{}, "receiver=":{file:"kernel/common/block_environment.rb", lines:[30, 30]}, "call_on_instance":{file:"kernel/common/block_environment.rb", lines:[52, 52]}, "local_count=":{}, "unless:":{doc:"Opposite of Block#if:. Calls itself if the given object is false-ish.
\n\n\n\n", arg:["obj"], file:"lib/block.fy", lines:[87, 87]}, "while_false:":{doc:"Executes a given Block while self evals to nil\nExample:\n i = 0\n { i >= 10 } while_false: {
\n\ni println\ni = i + 1\n
\n\n}
\n\n\n\n", arg:["block"], file:"lib/block.fy", lines:[28, 28]}, "from_eval?":{file:"kernel/common/block_environment.rb", lines:[38, 38]}}}, "Method":{doc:"An instance of Method represents a method on a Class.\nEvery method in Fancy is an instance of the Method class.
\n\n\n\n", methods:{"__class_init__":{file:"lib/method.fy", lines:[5, 5]}}, ancestors:["Method", "Unmarshalable", "Object", "Kernel"], instance_methods:{"documentation:":{file:"lib/rbx/method.fy", lines:[7, 7]}, "name":{file:"kernel/common/method.rb", lines:[31, 31]}, "[]":{file:"kernel/common/method.rb", lines:[68, 68]}, "source_location":{file:"kernel/common/method.rb", lines:[101, 101]}, "to_proc":{file:"kernel/common/method.rb", lines:[142, 142]}, "initialize":{file:"kernel/common/method.rb", lines:[20, 20]}, "call":{file:"kernel/common/method.rb", lines:[68, 68]}, "test:":{file:"lib/method.fy", lines:[18, 18]}, "defined_in":{}, "==":{file:"kernel/common/method.rb", lines:[39, 39]}, "executable":{}, "receiver":{}, "inspect":{file:"kernel/common/method.rb", lines:[78, 78]}, "to_s":{file:"kernel/common/method.rb", lines:[78, 78]}, "owner":{file:"kernel/common/method.rb", lines:[131, 131]}, "arity":{file:"kernel/common/method.rb", lines:[59, 59]}, "unbind":{file:"kernel/common/method.rb", lines:[153, 153]}, "source":{file:"kernel/common/method.rb", lines:[109, 109]}, ":documentation":{file:"lib/rbx/method.fy", lines:[3, 3]}, "parameters":{file:"kernel/common/method.rb", lines:[117, 117]}, ":tests":{doc:"Returns an Array of all the FancySpec SpecTests defined for a\nMethod.
\n\n\n\n", arg:[], file:"lib/method.fy", lines:[13, 13]}}}, "FalseClass":{doc:"FalseClass extensions for Fancy on rbx.
\n\n\n\n", methods:{"yaml_tag_subclasses?":{file:"lib/yaml/tag.rb", lines:[null, null]}, "__class_init__":{file:"lib/yaml/rubytypes.rb", lines:[394, 394]}}, ancestors:["FalseClass", "ImmediateValue", "Object", "Kernel"], instance_methods:{"if_nil:":{doc:"Calls the block.
\n\n\n\n", arg:["block"], file:"lib/rbx/false_class.fy", lines:[23, 23]}, "taguri=":{}, "^":{file:"kernel/bootstrap/false.rb", lines:[7, 7]}, ":not":{doc:"Boolean negation of false
=> true
.
Returns nil.
\n\n\n\n", arg:["block"], file:"lib/rbx/false_class.fy", lines:[13, 13]}, "if_true:else:":{doc:"Calls else_block.
\n\n\n\n", arg:["then_block", "else_block"], file:"lib/rbx/false_class.fy", lines:[8, 8]}, "taguri":{file:"lib/yaml/tag.rb", lines:[64, 64]}, ":to_a":{file:"lib/rbx/false_class.fy", lines:[46, 46]}, ":false?":{doc:"Returns true.
\n\n\n\n", arg:[], file:"lib/rbx/false_class.fy", lines:[33, 33]}, ":nil?":{doc:"Returns true.
\n\n\n\n", arg:[], file:"lib/rbx/false_class.fy", lines:[28, 28]}, "if_false:":{doc:"Calls the block.
\n\n\n\n", arg:["block"], file:"lib/rbx/false_class.fy", lines:[18, 18]}, "inspect":{file:"kernel/common/false.rb", lines:[7, 7]}, "to_s":{file:"kernel/bootstrap/false.rb", lines:[11, 11]}, ":true?":{doc:"Returns nil.
\n\n\n\n", arg:[], file:"lib/rbx/false_class.fy", lines:[38, 38]}, "|":{file:"kernel/bootstrap/false.rb", lines:[7, 7]}, "to_yaml":{file:"lib/yaml/rubytypes.rb", lines:[395, 395]}, "&":{file:"kernel/bootstrap/false.rb", lines:[3, 3]}, ":to_s":{file:"lib/rbx/false_class.fy", lines:[42, 42]}, "__marshal__":{file:"kernel/common/marshal.rb", lines:[31, 31]}}}, "Thread":{doc:"Thread class.\nDeals with parallel execution.
\n\nTODO:\n=> Still need to add more Fancy-ish wrapper methods and method\n documentation.
\n\n\n\n", methods:{"list":{file:"kernel/common/thread.rb", lines:[301, 301]}, "guarding?":{file:"kernel/common/thread.rb", lines:[326, 326]}, "stop":{file:"kernel/common/thread.rb", lines:[151, 151]}, "critical":{file:"kernel/common/thread.rb", lines:[157, 157]}, "main":{file:"kernel/common/thread.rb", lines:[293, 293]}, "critical=":{file:"kernel/common/thread.rb", lines:[161, 161]}, "abort_on_exception":{file:"kernel/common/thread.rb", lines:[16, 16]}, "abort_on_exception=":{file:"kernel/common/thread.rb", lines:[20, 20]}, "current":{file:"kernel/bootstrap/thread.rb", lines:[5, 5]}, "__class_init__":{file:"lib/rbx/thread.fy", lines:[11, 11]}, "start":{file:"kernel/common/thread.rb", lines:[48, 48]}, "start:":{file:"lib/rbx/thread.fy", lines:[72, 72]}, ":stop":{file:"kernel/common/thread.rb", lines:[151, 151]}, ":critical":{file:"kernel/common/thread.rb", lines:[157, 157]}, "allocate":{file:"kernel/bootstrap/thread.rb", lines:[10, 10]}, ":main":{file:"kernel/common/thread.rb", lines:[293, 293]}, ":pass":{file:"kernel/bootstrap/thread.rb", lines:[15, 15]}, ":current":{file:"kernel/bootstrap/thread.rb", lines:[5, 5]}, ":abort_on_exception":{file:"kernel/common/thread.rb", lines:[16, 16]}, "detect_recursion":{file:"kernel/common/thread.rb", lines:[335, 335]}, ":list":{file:"kernel/common/thread.rb", lines:[301, 301]}, "new":{file:"kernel/common/thread.rb", lines:[40, 40]}, "new:":{file:"lib/rbx/thread.fy", lines:[52, 52]}, "abort_on_exception:":{file:"lib/rbx/thread.fy", lines:[56, 56]}, "critical:":{file:"lib/rbx/thread.fy", lines:[64, 64]}, "initialize_main_thread":{file:"kernel/common/thread.rb", lines:[297, 297]}, "pass":{file:"kernel/bootstrap/thread.rb", lines:[15, 15]}, "exclusive":{file:"lib/thread.rb", lines:[30, 30]}, "kill:":{file:"lib/rbx/thread.fy", lines:[68, 68]}, "recursion_guard":{file:"kernel/common/thread.rb", lines:[314, 314]}, "detect_outermost_recursion":{file:"kernel/common/thread.rb", lines:[389, 389]}}, ancestors:["Thread", "Object", "Kernel"], instance_methods:{":kill":{file:"kernel/common/thread.rb", lines:[116, 116]}, "fork":{file:"kernel/bootstrap/thread.rb", lines:[20, 20]}, "key?":{file:"kernel/common/thread.rb", lines:[252, 252]}, "initialize":{file:"kernel/common/thread.rb", lines:[52, 52]}, "priority":{file:"kernel/bootstrap/thread.rb", lines:[35, 35]}, "abort_on_exception":{file:"kernel/common/thread.rb", lines:[29, 29]}, ":terminate":{file:"kernel/common/thread.rb", lines:[116, 116]}, "sleeping?":{file:"kernel/common/thread.rb", lines:[125, 125]}, "group":{file:"kernel/common/thread.rb", lines:[169, 169]}, ":exit":{file:"kernel/common/thread.rb", lines:[116, 116]}, ":value":{file:"kernel/common/thread.rb", lines:[177, 177]}, "abort_on_exception=":{file:"kernel/common/thread.rb", lines:[25, 25]}, ":alive?":{file:"kernel/common/thread.rb", lines:[105, 105]}, ":run":{file:"kernel/bootstrap/thread.rb", lines:[30, 30]}, "recursive_objects":{}, "kill":{file:"kernel/common/thread.rb", lines:[116, 116]}, "set_debugging":{file:"kernel/common/thread.rb", lines:[256, 256]}, "raise":{file:"kernel/common/thread.rb", lines:[208, 208]}, "set_debugger_thread":{file:"kernel/common/thread.rb", lines:[268, 268]}, "[]":{file:"kernel/common/thread.rb", lines:[240, 240]}, "current_context":{file:"kernel/common/thread.rb", lines:[438, 438]}, "add_to_group":{file:"kernel/common/thread.rb", lines:[173, 173]}, "priority:":{file:"lib/rbx/thread.fy", lines:[40, 40]}, "keys":{file:"kernel/common/thread.rb", lines:[248, 248]}, "status":{file:"kernel/common/thread.rb", lines:[132, 132]}, "__context__":{file:"kernel/bootstrap/thread.rb", lines:[45, 45]}, "inspect":{file:"kernel/common/thread.rb", lines:[33, 33]}, "join":{file:"kernel/common/thread.rb", lines:[165, 165]}, "alive?":{file:"kernel/common/thread.rb", lines:[105, 105]}, "context":{file:"kernel/common/thread.rb", lines:[438, 438]}, ":wakeup":{file:"kernel/bootstrap/thread.rb", lines:[30, 30]}, ":join":{file:"kernel/common/thread.rb", lines:[165, 165]}, ":stop?":{file:"kernel/common/thread.rb", lines:[112, 112]}, "debug_channel":{file:"kernel/common/thread.rb", lines:[260, 260]}, "run":{file:"kernel/bootstrap/thread.rb", lines:[30, 30]}, "[]=":{file:"kernel/common/thread.rb", lines:[244, 244]}, "stop?":{file:"kernel/common/thread.rb", lines:[112, 112]}, "setup":{file:"kernel/common/thread.rb", lines:[92, 92]}, "priority=":{file:"kernel/bootstrap/thread.rb", lines:[40, 40]}, ":abort_on_exception":{file:"kernel/common/thread.rb", lines:[29, 29]}, "exit":{file:"kernel/common/thread.rb", lines:[116, 116]}, "setup_control!":{file:"kernel/common/thread.rb", lines:[287, 287]}, "terminate":{file:"kernel/common/thread.rb", lines:[116, 116]}, "wakeup":{file:"kernel/bootstrap/thread.rb", lines:[30, 30]}, "value":{file:"kernel/common/thread.rb", lines:[177, 177]}, "exclusive:":{file:"lib/rbx/thread.fy", lines:[48, 48]}, ":priority":{file:"kernel/bootstrap/thread.rb", lines:[35, 35]}, "abort_on_exception:":{file:"lib/rbx/thread.fy", lines:[60, 60]}, ":status":{file:"kernel/common/thread.rb", lines:[132, 132]}, "raise:":{file:"lib/rbx/thread.fy", lines:[44, 44]}, "__run__":{file:"kernel/common/thread.rb", lines:[64, 64]}}}, "FancySpec PositiveMatcher":{doc:"PositiveMatcher expects its actual value to be equal to an\nexpected value.\nIf the values are not equal, a SpecTest failure is generated.
\n\n\n\n", methods:{"__class_init__":{file:"lib/fancy_spec.fy", lines:[122, 122]}}, ancestors:["FancySpec PositiveMatcher", "Object", "Kernel"], instance_methods:{"initialize:":{file:"lib/fancy_spec.fy", lines:[null, null]}, "unknown_message:with_params:":{doc:"Forwardy any other message and parameters to the object itself\nand checks the return value.
\n\n\n\n", arg:["msg", "params"], file:"lib/fancy_spec.fy", lines:[146, 146]}, ":==":{file:"lib/fancy_spec.fy", lines:[128, 128]}, ":!=":{file:"lib/fancy_spec.fy", lines:[134, 134]}, "be:":{file:"lib/fancy_spec.fy", lines:[149, 149]}, "method_missing":{}}}, "Fancy Package Uninstaller":{doc:"Fancy
Package@ Uninstaller.
A documentation formatter using ruby's RDiscount markdown
\n\n\n\n", methods:{"__class_init__":{file:"lib/documentation.fy", lines:[100, 100]}, "rdiscount:":{doc:"Format string as HTML using RDiscount ruby gem.
\n\n\n\n", arg:["doc"], file:"lib/documentation.fy", lines:[109, 109]}}, ancestors:["Fancy Documentation RDiscount", "Object", "Kernel"], instance_methods:{}}, "NilClass":{doc:"NilClass. The class of the singleton nil value.
\n\n\n\n", methods:{"yaml_tag_subclasses?":{file:"lib/yaml/tag.rb", lines:[null, null]}, ":new":{file:"lib/nil_class.fy", lines:[7, 7]}, "__class_init__":{file:"lib/yaml/rubytypes.rb", lines:[403, 403]}}, ancestors:["NilClass", "ImmediateValue", "Object", "Kernel"], instance_methods:{"to_a":{file:"kernel/bootstrap/nil.rb", lines:[25, 25]}, "if_nil:":{doc:"Calls the block.
\n\n\n\n", arg:["block"], file:"lib/nil_class.fy", lines:[27, 27]}, "taguri=":{}, "^":{file:"kernel/bootstrap/nil.rb", lines:[7, 7]}, ":not":{file:"lib/nil_class.fy", lines:[54, 54]}, "if_true:":{doc:"Returns nil.
\n\n\n\n", arg:["block"], file:"lib/nil_class.fy", lines:[17, 17]}, "to_f":{file:"kernel/bootstrap/nil.rb", lines:[29, 29]}, "if_true:else:":{doc:"Calls else_block.
\n\n\n\n", arg:["then_block", "else_block"], file:"lib/nil_class.fy", lines:[12, 12]}, "nil?":{file:"kernel/bootstrap/nil.rb", lines:[19, 19]}, "__nil__":{file:"kernel/bootstrap/nil.rb", lines:[19, 19]}, "taguri":{file:"lib/yaml/tag.rb", lines:[64, 64]}, ":to_a":{file:"lib/nil_class.fy", lines:[50, 50]}, ":false?":{doc:"Returns true.
\n\n\n\n", arg:[], file:"lib/nil_class.fy", lines:[37, 37]}, ":nil?":{doc:"Returns true.
\n\n\n\n", arg:[], file:"lib/nil_class.fy", lines:[32, 32]}, "if_false:":{doc:"Calls the block.
\n\n\n\n", arg:["block"], file:"lib/nil_class.fy", lines:[22, 22]}, "inspect":{file:"kernel/bootstrap/nil.rb", lines:[15, 15]}, "to_s":{file:"kernel/bootstrap/nil.rb", lines:[11, 11]}, ":true?":{doc:"Returns nil.
\n\n\n\n", arg:[], file:"lib/nil_class.fy", lines:[42, 42]}, "to_i":{file:"kernel/bootstrap/nil.rb", lines:[33, 33]}, "|":{file:"kernel/bootstrap/nil.rb", lines:[7, 7]}, "to_yaml":{file:"lib/yaml/rubytypes.rb", lines:[404, 404]}, "&":{file:"kernel/bootstrap/nil.rb", lines:[3, 3]}, ":to_s":{file:"lib/nil_class.fy", lines:[46, 46]}, "__marshal__":{file:"kernel/common/marshal.rb", lines:[19, 19]}}}, "TCPServer":{doc:"TCP Server
\n\n\n\n", methods:{"__class_init__":{file:"lib/rbx/tcp_server.fy", lines:[4, 4]}}, ancestors:["TCPServer", "Socket ListenAndAccept", "IO Socketable", "TCPSocket", "IPSocket", "BasicSocket", "IO", "Unmarshalable", "File Constants", "Object", "Kernel"], instance_methods:{":accept":{file:"lib/socket.rb", lines:[453, 453]}}}, "Fancy FDoc":{doc:"FDoc is a tool to generate API documentation from Fancy source.
\n\nWorks as follows:
\n\nFDoc will load all .fy files you give to it, and optionally run\nany specified FancySpec, and later produce documentation output.
\n\n\n\n", arg:[], file:"lib/fdoc.fy", lines:[32, 32]}, "__class_init__":{file:"lib/fdoc.fy", lines:[22, 22]}}, ancestors:["Fancy FDoc", "Object", "Kernel"], instance_methods:{}}, "Object":{doc:"Root class of Fancy's class hierarchy.\nAll classes inherit from Object.
\n\n\n\n", methods:{"yaml_tag_subclasses?":{file:"lib/yaml/tag.rb", lines:[null, null]}, "__class_init__":{file:"lib/digest.rb", lines:[53, 53]}}, ancestors:["Object", "Kernel"], instance_methods:{"message_name:":{file:"lib/rbx/object.fy", lines:[106, 106]}, "returning:do:":{doc:"Returns value
after calling block
with it.\nUseful for returning some object after using it, e.g.:
# this will return [1,2]\nreturning: [] do: |arr| {\n arr << 1\n arr << 2\n}\n
\n\n \n\n\n\n", arg:["value", "block"], file:"lib/object.fy", lines:[187, 187]}, ":to_a":{file:"lib/object.fy", lines:[90, 90]}, "or_take:":{doc:"Returns self if it's non-nil, otherwise returns the given object.
\n\n\n\n", arg:["other"], file:"lib/object.fy", lines:[83, 83]}, "while:do:":{doc:"Same as:\n cond_block while_do: body_block
\n\n\n\n", arg:["cond_block", "body_block"], file:"lib/object.fy", lines:[129, 129]}, "ruby:args:with_block:":{}, "metaclass":{file:"kernel/bootstrap/object.rb", lines:[3, 3]}, ":==":{file:"kernel/bootstrap/kernel.rb", lines:[5, 5]}, ":to_num":{file:"lib/object.fy", lines:[86, 86]}, ":&&":{doc:"Same as Object#and:
\n\n\n\n", arg:["other"], file:"lib/object.fy", lines:[105, 105]}, "to_yaml":{file:"lib/yaml/rubytypes.rb", lines:[15, 15]}, "loop:":{doc:"Infinitely calls the block (loops).
\n\n\n\n", arg:["block"], file:"lib/object.fy", lines:[9, 9]}, "ruby:args:":{}, ":dclone":{doc:"Returns a deep clone of self using Ruby's Marshal class.
\n\n\n\n", arg:[], file:"lib/rbx/object.fy", lines:[27, 27]}, "taguri":{file:"lib/yaml/tag.rb", lines:[64, 64]}, "send:":{file:"lib/rbx/object.fy", lines:[98, 98]}, ":nil?":{doc:"Returns nil.
\n\n\n\n", arg:[], file:"lib/object.fy", lines:[41, 41]}, "if_do:":{doc:"If the object is non-nil, it calls the given block with itself as argument.
\n\n\n\n", arg:["block"], file:"lib/object.fy", lines:[57, 57]}, "set_slot:value:":{file:"lib/rbx/object.fy", lines:[43, 43]}, ":true?":{doc:"Returns nil.
\n\n\n\n", arg:[], file:"lib/object.fy", lines:[51, 51]}, ":!=":{doc:"Indicates, if two objects are unequal.
\n\n\n\n", arg:["other"], file:"lib/object.fy", lines:[26, 26]}, "responds_to?:":{file:"lib/rbx/object.fy", lines:[115, 115]}, ":to_s":{file:"lib/rbx/object.fy", lines:[35, 35]}, "protected":{file:"/Users/backtype/projects/fancy/boot/fancy_ext/object.rb", lines:[32, 32]}, "define_singleton_method:with:":{file:"lib/rbx/object.fy", lines:[80, 80]}, "if:then:":{doc:"Same as:
\n\ncond if_do: block\n
\n\n\n\n", arg:["cond", "block"], file:"lib/object.fy", lines:[112, 112]}, ":print":{doc:"Same as Console print: self. Prints the object on STDOUT.
\n\n\n\n", arg:[], file:"lib/object.fy", lines:[21, 21]}, "until:do:":{doc:"Same as:\n cond_block until_do: body_block
\n\n\n\n", arg:["cond_block", "body_block"], file:"lib/object.fy", lines:[138, 138]}, "documentation:":{doc:"Sets the documentation string for an Object.
\n\n\n\n", arg:["str"], file:"lib/object.fy", lines:[163, 163]}, ":class":{file:"kernel/alpha.rb", lines:[143, 143]}, "send:params:":{file:"lib/rbx/object.fy", lines:[102, 102]}, "if_do:else:":{doc:"If the object is non-nil, it calls the given then_block with itself as argument.\nOtherwise it calls the given else_block.
\n\n\n\n", arg:["then_block", "else_block"], file:"lib/object.fy", lines:[68, 68]}, "is_a?:":{doc:"Indicates, if an object is an instance of a given Class.
\n\n\n\n", arg:["class"], file:"lib/rbx/object.fy", lines:[90, 90]}, ":should_not":{doc:"Returns a NegativeMatcher for self.
\n\n\n\n", arg:[], file:"lib/fancy_spec.fy", lines:[200, 200]}, "if:then:else:":{doc:"Same as:
\n\ncond if_do: then_block else: else_block\n
\n\n\n\n", arg:["cond", "then_block", "else_block"], file:"lib/object.fy", lines:[120, 120]}, "to_yaml_properties":{file:"lib/yaml/rubytypes.rb", lines:[null, null]}, "ruby:with_block:":{}, "unless:do:":{doc:"Same as:\n cond if_do: { nil } else: block
\n\n\n\n", arg:["cond", "block"], file:"lib/object.fy", lines:[147, 147]}, ":documentation":{doc:"Returns the documentation string for an Object.
\n\n\n\n", arg:[], file:"lib/object.fy", lines:[158, 158]}, ":===":{file:"kernel/common/kernel.rb", lines:[402, 402]}, "kind_of?:":{doc:"Indicates, if an object is an instance of a given Class.
\n\n\n\n", arg:["class"], file:"lib/rbx/object.fy", lines:[95, 95]}, "__show__":{file:"kernel/alpha.rb", lines:[63, 63]}, "__marshal__":{file:"kernel/common/marshal.rb", lines:[3, 3]}, ":println":{doc:"Same as Console println: self. Prints the object on STDOUT, followed by a newline.
\n\n\n\n", arg:[], file:"lib/object.fy", lines:[16, 16]}, ":should":{doc:"Returns a PositiveMatcher for self.
\n\n\n\n", arg:[], file:"lib/fancy_spec.fy", lines:[195, 195]}, ":initialize":{file:"lib/rbx/object.fy", lines:[22, 22]}, "to_yaml_style":{file:"lib/yaml/rubytypes.rb", lines:[null, null]}, "if_nil:":{doc:"Returns nil.
\n\n\n\n", arg:["block"], file:"lib/object.fy", lines:[36, 36]}, "taguri=":{}, "undefine_singleton_method:":{file:"lib/rbx/object.fy", lines:[84, 84]}, "public":{file:"/Users/backtype/projects/fancy/boot/fancy_ext/object.rb", lines:[26, 26]}, ":identity":{doc:"The identity method simply returns self.
\n\n\n\n", arg:[], file:"lib/object.fy", lines:[168, 168]}, "__metaclass__":{file:"kernel/bootstrap/object.rb", lines:[3, 3]}, ":false?":{doc:"Returns nil.
\n\n\n\n", arg:[], file:"lib/object.fy", lines:[46, 46]}, ":inspect":{file:"lib/rbx/object.fy", lines:[39, 39]}, "private":{file:"/Users/backtype/projects/fancy/boot/fancy_ext/object.rb", lines:[29, 29]}, "__fixnum__":{file:"kernel/bootstrap/object.rb", lines:[9, 9]}, ":||":{doc:"Same as Object#or:
\n\n\n\n", arg:["other"], file:"lib/object.fy", lines:[100, 100]}, "if_false:":{doc:"Calls the block.
\n\n\n\n", arg:["block"], file:"lib/object.fy", lines:[31, 31]}, ":to_i":{file:"lib/object.fy", lines:[94, 94]}, "and:":{doc:"Boolean conjunction.\nReturns true if self and other are true, otherwise nil.
\n\n\n\n", arg:["other"], file:"lib/rbx/object.fy", lines:[56, 56]}, ":++":{file:"lib/rbx/object.fy", lines:[31, 31]}, "or:":{doc:"Boolean disjunction.\nReturns true if either self or other is true, otherwise nil.
\n\n\n\n", arg:["other"], file:"lib/rbx/object.fy", lines:[69, 69]}, "get_slot:":{file:"lib/rbx/object.fy", lines:[47, 47]}, "method:":{doc:"Returns the method with a given name for self, if defined.
\n\n\n\n", arg:["method_name"], file:"lib/object.fy", lines:[154, 154]}}}, "Fancy Documentation":{doc:"A Fancy Documentation object is a holder for docstrings and specs.\nKeeps a registry of documentation for anything Fancy.
\n\nProvides methods for searching and formatting objects' docstrings\nthis can be be handy for users of interactive Fancy REPL,\ndocument generators, instrospection toos, IDEs, anything!.
\n\nThis object can be converted to just anything by using its format:\nmethod. formatters can be registered with Fancy Documentation formatter:is:
\n\nBy default two formatters are defined:
\n\n 'fancy => Returns the Fancy::Documentation object\n 'string => Returns the docs string representation\n
\n\n\n\n", methods:{"for:append:":{doc:"Append docstring to the documentation for obj.\nIf obj has no documentation, one is created for it.
\n\n\n\n", arg:["obj", "docstring"], file:"lib/documentation.fy", lines:[65, 65]}, "remove:":{doc:"Removes the documentation for obj.
\n\n\n\n", arg:["obj"], file:"lib/rbx/documentation.fy", lines:[55, 55]}, "formatter:is:":{doc:"Register a callable object as formatter under name.
\n\n\n\n", arg:["name", "callable"], file:"lib/documentation.fy", lines:[81, 81]}, ":formatters":{doc:"Obtain the hash of known documentation formatters.
\n\n\n\n", arg:[], file:"lib/documentation.fy", lines:[87, 87]}, "for:is:":{doc:"Create a Fancy::Documentation instance.
\n\nNote: As we're bootstrapping, we cannot set documentation here as\nan string literal.
\n\nWe are the very first thing to load, so just create a new\nFancy::Documentation object without using new:, and set it as\nfancy docs.
\n\n\n\n", arg:["obj", "docstring"], file:"lib/rbx/documentation.fy", lines:[37, 37]}, "documentation_for:set_to:":{file:"lib/rbx/documentation.fy", lines:[22, 22]}, "__class_init__":{file:"lib/documentation.fy", lines:[18, 18]}, "on_documentation_set:":{file:"lib/rbx/documentation.fy", lines:[18, 18]}, "for:":{doc:"Obtains the Fancy Documentation for obj.
\n\n\n\n", arg:["obj"], file:"lib/rbx/documentation.fy", lines:[50, 50]}, "formatter:":{doc:"Obtain a formatter by the given name. Returns a callable object
\n\n\n\n", arg:["name"], file:"lib/documentation.fy", lines:[76, 76]}}, ancestors:["Fancy Documentation", "Object", "Kernel"], instance_methods:{"initialize:":{file:"lib/rbx/documentation.fy", lines:[7, 7]}, "object:":{}, ":object":{}, ":meta":{file:"lib/rbx/documentation.fy", lines:[null, null]}, "specs:":{}, "meta:":{file:"lib/rbx/documentation.fy", lines:[null, null]}, "docs:":{}, "format:":{doc:"If format is specified, the documentation string will be\nconverted using the corresponding formatter. This allows\nyou to extend Fancy documentation system, and produce\nhtml documents, man pages, or anything you can imagine.
\n\n\n\n", arg:["format"], file:"lib/documentation.fy", lines:[55, 55]}, ":docs":{doc:"An array of docstrings for the object beind documented.
\n\nWe have an array of docstrings because in Fancy, some\nthings like classes can be re-openned and the user may\nspecify new documentation for it each time. Thus we dont\nwant to loose the previous documentation but rather build\nupon it. That is, fancy supports incremental documentation.
\n\n\n\n"}, ":to_s":{file:"lib/documentation.fy", lines:[null, null]}, ":specs":{doc:"An array of associated Fancy specs for the object\nbeing documented.
\n\nIts a lot better to keep the associated specs in\nFancy Documentation objects instead of just having them\nin method instances. This allows us to associate any object\nwith an spec example.
\n\nThis way you can have a single Fancy spec example that\nis related to many objects (methods, constants, classes)\nthat are being specified. Later in documentation, we can\nprovide links to all specs where an object is being exercised.
\n\n\n\n"}}}, "TrueClass":{doc:"TrueClass. The class of the singleton true value.
\n\n\n\n", methods:{"yaml_tag_subclasses?":{file:"lib/yaml/tag.rb", lines:[null, null]}, ":new":{file:"lib/true_class.fy", lines:[7, 7]}, "__class_init__":{file:"lib/yaml/rubytypes.rb", lines:[385, 385]}}, ancestors:["TrueClass", "ImmediateValue", "Object", "Kernel"], instance_methods:{"taguri=":{}, "^":{file:"kernel/bootstrap/true.rb", lines:[7, 7]}, ":not":{file:"lib/true_class.fy", lines:[41, 41]}, "if_true:":{doc:"Calls the block.
\n\n\n\n", arg:["block"], file:"lib/true_class.fy", lines:[17, 17]}, "if_true:else:":{doc:"Calls the then_block.
\n\n\n\n", arg:["then_block", "else_block"], file:"lib/true_class.fy", lines:[12, 12]}, "taguri":{file:"lib/yaml/tag.rb", lines:[64, 64]}, ":false?":{doc:"Returns nil.
\n\n\n\n", arg:[], file:"lib/true_class.fy", lines:[32, 32]}, "if_false:":{doc:"Returns nil.
\n\n\n\n", arg:["block"], file:"lib/true_class.fy", lines:[22, 22]}, ":nil?":{doc:"Returns nil.
\n\n\n\n", arg:[], file:"lib/true_class.fy", lines:[27, 27]}, "inspect":{file:"kernel/common/true.rb", lines:[5, 5]}, "to_s":{file:"kernel/bootstrap/true.rb", lines:[15, 15]}, ":true?":{doc:"Returns true.
\n\n\n\n", arg:[], file:"lib/true_class.fy", lines:[37, 37]}, "|":{file:"kernel/bootstrap/true.rb", lines:[11, 11]}, "to_yaml":{file:"lib/yaml/rubytypes.rb", lines:[386, 386]}, "&":{file:"kernel/bootstrap/true.rb", lines:[3, 3]}, "__marshal__":{file:"kernel/common/marshal.rb", lines:[25, 25]}}}, "Console":{doc:"Console class. Used for STDIO
.
Prints a newline to STDOUT
.
Prints a given object on STDOUT
, followed by a newline.
Reads a line from STDIN
and returns it as a String
.
Prints a given object on STDOUT
.
Clears the Console
.
Prints a given message to STDOUT
, followed by reading a line from\nSTDIN
.
A documentation formater intended to be used by FDoc
.
This formatter makes some transformations on a docstring\nand then converts it to html using markdown.
\n\n\n\n", methods:{"create_code:":{file:"lib/fdoc.fy", lines:[336, 336]}, "remove_indentation:":{doc:"Remove leading white space for multi-line strings.\nThis method expects the first character to be an line return.
\n\n\n\n", arg:["str"], file:"lib/fdoc.fy", lines:[212, 212]}, "remove_tags:into:":{file:"lib/fdoc.fy", lines:[313, 313]}, "create_tags:with:":{file:"lib/fdoc.fy", lines:[326, 326]}, "create_method_references:":{file:"lib/fdoc.fy", lines:[348, 348]}, "format:":{file:"lib/fdoc.fy", lines:[195, 195]}, "__class_init__":{file:"lib/fdoc.fy", lines:[189, 189]}, "create_class_references:":{doc:"Creates class references for Fancy class names.
\n\nA docstring may contain class names sorounded by @\nwithout space between the @.
\n\nNested classes can be indicated by using :: like
\n\nFoo::Bar
\n\nThis will create references for both, Foo
and Bar
Instance methods should be written:
\n\nFoo::Bar#baz
\n\nClass methods should be written:
\n\nFoo::Bar.baz
\n\nSome examples:
\n\nA simple class reference:
\n\nFancy
Nested class reference:
\n\nFancy
FDoc
A fancy method without arguments:
\n\nFancy
FDoc
JSON
generate_map
A ruby method reference (will link to ruby docs if available)
\n\nString
split
A fancy method with many arguments:
\n\nFancy
Package
Installer
initialize:version:install_path:
A singleton method:
\n\nFancy
FDoc
Formatter
format:
Fancy
Package
installer.
Downloads packages from Github (usually the latest tagged version,\nif no version is specified, or the latest HEAD revision in the\nmaster branch) and install it to the FANCY_PACKAGE_DIR
.
Loads the @.fancypack file within the downloaded package directory.\nIf no @.fancypack file is found, raise an error.
\n\n\n\n", arg:[], file:"lib/package/installer.fy", lines:[171, 171]}, ":tags":{doc:"Returns a list of tags the repository has on Github.
\n\n\n\n", arg:[], file:"lib/package/installer.fy", lines:[95, 95]}, "fulfill_spec:":{file:"lib/package/installer.fy", lines:[196, 196]}, "download_tgz:":{doc:"Downloads the .tar.gz file from Github with the given version\n(tag or branch name) and saves it to the specified install_path
.
The Default install_path is ~/.fancy/packages/.\nIf an environment variable FANCY_PACKAGE_DIR
is defined, it\nwill get used.
Renames a given directory to a common way within the install path.\n=> It will rename the given dirname to $user/$repo-$version.
\n\n\n\n", arg:["dirname"], file:"lib/package/installer.fy", lines:[162, 162]}, "download_url:":{doc:"Returns the download url for a given version of the package\nto be installed.
\n\n\n\n", arg:["version"], file:"lib/package/installer.fy", lines:[114, 114]}, ":latest_tag":{doc:"Returns the latest tag (sorted alphabetically).
\n\n\n\n", arg:[], file:"lib/package/installer.fy", lines:[86, 86]}, ":run":{doc:"Runs the installer & installs the package into\n$FANCY_PACKAGE_DIR
.
Indicates, if a given version is available on Github.
\n\n\n\n", arg:["version"], file:"lib/package/installer.fy", lines:[102, 102]}}}, "FancyEnumerable":{doc:"Mixin-Class with useful methods for collections that implement an each:
method.
Same as reduce:init_val: but taking the initial value as first and the reducing block as second parameter.
\n\n\n\n", arg:["val", "block"], file:"lib/enumerable.fy", lines:[186, 186]}, "partition_by:":{file:"lib/enumerable.fy", lines:[260, 260]}, "each:in_between:":{doc:"Similar to each:
but calls an additional Block
between\ncalling the first Block
for each element in self.
Returns a new Array
with the results of calling a given block for every element
Returns the maximum value in the Enumerable (via the '>' comparison message).
\n\n\n\n", arg:[], file:"lib/enumerable.fy", lines:[252, 252]}, ":uniq":{doc:"Returns a new Array with all unique values (double entries are skipped).
\n\n\n\n", arg:[], file:"lib/enumerable.fy", lines:[191, 191]}, ":last":{doc:"Returns the last element in an Enumerable.
\n\n\n\n", arg:[], file:"lib/enumerable.fy", lines:[224, 224]}, "take_while:":{doc:"Returns a new Array
by taking elements from the beginning as long as they meet the given condition block.
Calculates the product of all the elements in the Enumerable
\n(assuming them to be Number
s (implementing +
& *
)).
Returns a new Array
with all elements that don't meet the given condition block.
Indicates, if the Enumerable is empty (has no elements).
\n\n\n\n", arg:[], file:"lib/enumerable.fy", lines:[212, 212]}, ":compact":{doc:"Returns a new Array
with all values removed that are nil
( return true
on nil?
).
Returns the superiour element in the Enumerable
that has met the given comparison block with all other elements.
Similar to FancyEnumerable
any?:
just checking for all elements.\nIndicates, if all elements meet the condition.
Returns nil
, if the given object isn't found, or the object, if it is found.
Similar to find:
but takes a block that is called for each element to find it.
Returns the size of an Enumerable.
\n\n\n\n", arg:[], file:"lib/enumerable.fy", lines:[203, 203]}, "any?:":{doc:"Indicates, if any element meets the condition.
\n\n \n\n", arg:["condition"], file:"lib/enumerable.fy", lines:[46, 46]}, "take:":{file:"lib/enumerable.fy", lines:[156, 156]}, "drop_while:":{doc:"Returns a new Array
by skipping elements from the beginning as long as they meet the given condition block.
Calculates the sum of all the elements in the Enumerable
\n(assuming them to be Number
s (implementing '+' & '*')).
Returns a new Array
with all elements that meet the given condition block.
Indicates, if a collection includes a given element.
\n\n \n\n", arg:["item"], file:"lib/enumerable.fy", lines:[14, 14]}, "reduce:init_val:":{doc:"Calculates a value based on a given block to be called on an accumulator value and an initial value.
\n\n\n\n", arg:["block", "init_val"], file:"lib/enumerable.fy", lines:[174, 174]}, ":min":{doc:"Returns the minimum value in the Enumerable (via the '<' comparison message).
\n\n\n\n", arg:[], file:"lib/enumerable.fy", lines:[257, 257]}}}, "Hash":{doc:"Class for Hashes (HashMaps / Dictionaries).\nMaps a key to a value.
\n\n\n\n", methods:{"new_from_literal":{file:"kernel/common/hash.rb", lines:[115, 115]}, "allocate":{file:"kernel/common/hash.rb", lines:[120, 120]}, "yaml_tag_subclasses?":{file:"lib/yaml/tag.rb", lines:[null, null]}, "[]":{file:"kernel/common/hash.rb", lines:[78, 78]}, "__class_init__":{file:"lib/yaml/rubytypes.rb", lines:[27, 27]}}, ancestors:["Hash", "FancyEnumerable", "Object", "Enumerable", "Object", "Kernel"], instance_methods:{"each_pair":{file:"kernel/common/hash.rb", lines:[335, 335]}, "eql?":{file:"kernel/common/hash.rb", lines:[151, 151]}, "shift":{file:"kernel/common/hash.rb", lines:[604, 604]}, "key?":{file:"kernel/common/hash.rb", lines:[434, 434]}, "index":{file:"kernel/common/hash.rb", lines:[382, 382]}, "delete":{file:"kernel/common/hash.rb", lines:[256, 256]}, ":to_a":{doc:"Returns an Array of the key-value pairs in a Hash.
\n\n\n\n", arg:[], file:"lib/hash.fy", lines:[49, 49]}, "select":{file:"kernel/common/hash.rb", lines:[590, 590]}, "store":{file:"kernel/common/hash.rb", lines:[194, 194]}, "sort":{file:"kernel/common/hash.rb", lines:[634, 634]}, "map:":{file:"lib/rbx/hash.fy", lines:[36, 36]}, "hash":{file:"kernel/common/hash.rb", lines:[174, 174]}, "__store__":{file:"kernel/common/hash.rb", lines:[194, 194]}, "indices":{file:"kernel/common/hash.rb", lines:[667, 667]}, "each:":{doc:"Calls a given Block with each key and value.
\n\n\n\n", arg:["block"], file:"lib/hash.fy", lines:[27, 27]}, "has_value?":{file:"kernel/common/hash.rb", lines:[655, 655]}, "each_value":{file:"kernel/common/hash.rb", lines:[344, 344]}, "to_yaml":{file:"lib/yaml/rubytypes.rb", lines:[38, 38]}, "to_a":{file:"kernel/common/hash.rb", lines:[638, 638]}, "clear":{file:"kernel/common/hash.rb", lines:[232, 232]}, "fetch":{file:"kernel/common/hash.rb", lines:[358, 358]}, "each_entry":{file:"kernel/common/hash.rb", lines:[292, 292]}, "[]":{file:"kernel/common/hash.rb", lines:[186, 186]}, "reject":{file:"kernel/common/hash.rb", lines:[547, 547]}, "each":{file:"kernel/common/hash.rb", lines:[308, 308]}, "taguri":{file:"lib/yaml/tag.rb", lines:[64, 64]}, "keys":{file:"kernel/common/hash.rb", lines:[448, 448]}, "to_iter":{file:"kernel/common/hash.rb", lines:[643, 643]}, "inspect":{file:"kernel/common/hash.rb", lines:[413, 413]}, "member?":{file:"kernel/common/hash.rb", lines:[434, 434]}, ":keys":{file:"kernel/common/hash.rb", lines:[448, 448]}, "to_s":{file:"kernel/common/hash.rb", lines:[651, 651]}, "length":{}, "yaml_initialize":{file:"lib/yaml/rubytypes.rb", lines:[29, 29]}, ":to_s":{doc:"Returns a string representation of a Hash.
\n\n\n\n", arg:[], file:"lib/hash.fy", lines:[54, 54]}, "size":{}, "delete_if":{file:"kernel/common/hash.rb", lines:[283, 283]}, "replace":{file:"kernel/common/hash.rb", lines:[567, 567]}, "rehash":{file:"kernel/common/hash.rb", lines:[522, 522]}, "include?":{file:"kernel/common/hash.rb", lines:[434, 434]}, "[]=":{file:"kernel/common/hash.rb", lines:[194, 194]}, "find_entry":{file:"kernel/common/hash.rb", lines:[370, 370]}, "==":{file:"kernel/common/hash.rb", lines:[126, 126]}, "to_hash":{file:"kernel/common/hash.rb", lines:[647, 647]}, "redistribute":{file:"kernel/common/hash.rb", lines:[496, 496]}, ":values":{file:"kernel/common/hash.rb", lines:[663, 663]}, "at:":{file:"kernel/common/hash.rb", lines:[186, 186]}, "update":{file:"kernel/common/hash.rb", lines:[456, 456]}, "at:put:":{file:"kernel/common/hash.rb", lines:[194, 194]}, "default=":{file:"kernel/common/hash.rb", lines:[247, 247]}, "__marshal__":{file:"kernel/common/marshal.rb", lines:[165, 165]}, "each_value:":{doc:"Calls a given Block with each value.
\n\n\n\n", arg:["block"], file:"lib/hash.fy", lines:[40, 40]}, "taguri=":{}, "empty?":{file:"kernel/common/hash.rb", lines:[354, 354]}, "invert":{file:"kernel/common/hash.rb", lines:[426, 426]}, ":size":{}, "has_key?":{file:"kernel/common/hash.rb", lines:[434, 434]}, "merge":{file:"kernel/common/hash.rb", lines:[452, 452]}, "reject!":{file:"kernel/common/hash.rb", lines:[555, 555]}, ":inspect":{file:"lib/rbx/hash.fy", lines:[11, 11]}, ":[]":{doc:"Returns the value for a given key.
\n\n\n\n", arg:["key"], file:"lib/hash.fy", lines:[13, 13]}, "value?":{file:"kernel/common/hash.rb", lines:[655, 655]}, "merge!":{file:"kernel/common/hash.rb", lines:[456, 456]}, "each_key:":{doc:"Calls a given Block with each key.
\n\n\n\n", arg:["block"], file:"lib/hash.fy", lines:[32, 32]}, "values_at":{file:"kernel/common/hash.rb", lines:[667, 667]}, "indexes":{file:"kernel/common/hash.rb", lines:[667, 667]}, "default_proc":{file:"kernel/common/hash.rb", lines:[252, 252]}, "values":{file:"kernel/common/hash.rb", lines:[663, 663]}, "default":{file:"kernel/common/hash.rb", lines:[239, 239]}, "each_key":{file:"kernel/common/hash.rb", lines:[328, 328]}}}, "Fancy Package Dependency":{doc:"Package Dependency.\nRepresents a Dependency to another Package with a given version.
\n\n\n\n", methods:{"new:version:":{}, "__class_init__":{file:"lib/package/dependency.fy", lines:[6, 6]}}, ancestors:["Fancy Package Dependency", "Object", "Kernel"], instance_methods:{"initialize:":{file:"lib/package/dependency.fy", lines:[11, 11]}, "initialize:version:":{file:"lib/package/dependency.fy", lines:[null, null]}, ":name":{}, ":version":{}}}, "Symbol":{doc:"Symbols are unique identifiers and only created once.
\n\nIf there are several occurrances of the same Symbol literal within\nFancy code, they all refer to the same Symbol object.
\n\n\n\n", methods:{"yaml_new":{file:"lib/yaml/rubytypes.rb", lines:[186, 186]}, "all_symbols":{file:"kernel/common/symbol.rb", lines:[18, 18]}, "yaml_tag_subclasses?":{file:"lib/yaml/tag.rb", lines:[null, null]}, "===":{file:"kernel/bootstrap/symbol.rb", lines:[4, 4]}, "__class_init__":{file:"lib/yaml/rubytypes.rb", lines:[184, 184]}}, ancestors:["Symbol", "ImmediateValue", "Object", "Kernel"], instance_methods:{"is_ivar?":{file:"kernel/bootstrap/symbol.rb", lines:[14, 14]}, "taguri=":{}, "intern":{file:"kernel/alpha.rb", lines:[378, 378]}, "to_proc":{file:"kernel/common/symbol.rb", lines:[48, 48]}, ":eval":{file:"lib/rbx/symbol.fy", lines:[3, 3]}, "index":{file:"kernel/bootstrap/symbol.rb", lines:[9, 9]}, "call:":{doc:"This allows Symbols to be used like Blocks\n(e.g. in all methods of Enumerable).\nExample: [1, 2, 3] map: 'squared # => [1, 4, 9]
\n\n\n\n", arg:["arg"], file:"lib/symbol.fy", lines:[21, 21]}, "taguri":{file:"lib/yaml/tag.rb", lines:[64, 64]}, ":inspect":{file:"lib/rbx/symbol.fy", lines:[10, 10]}, "to_sym":{file:"kernel/alpha.rb", lines:[378, 378]}, "inspect":{file:"kernel/common/symbol.rb", lines:[25, 25]}, "to_s":{file:"kernel/alpha.rb", lines:[372, 372]}, "===":{file:"kernel/bootstrap/kernel.rb", lines:[5, 5]}, "id2name":{file:"kernel/alpha.rb", lines:[372, 372]}, "is_constant?":{file:"kernel/bootstrap/symbol.rb", lines:[24, 24]}, "is_cvar?":{file:"kernel/bootstrap/symbol.rb", lines:[19, 19]}, "to_yaml":{file:"lib/yaml/rubytypes.rb", lines:[194, 194]}, "__marshal__":{file:"kernel/common/marshal.rb", lines:[56, 56]}}}, "NoMethodError":{doc:"Exception class that gets thrown when a method wasn't found within a class.
\n\n\n\n", methods:{"__class_init__":{file:"lib/rbx/no_method_error.fy", lines:[4, 4]}}, ancestors:["NoMethodError", "NameError", "StandardError", "Exception", "Object", "Kernel"], instance_methods:{"name":{}, ":method_name":{doc:"Returns the name of the method that was not found as a String
.
Strings are sequences of characters and behave as such.\nAll literal Strings within Fancy code are instances of the String\nclass.
\n\nThey also include FancyEnumerable, which means you can use all the\ncommon sequence methods on them, like +map:+, +select:+ etc.
\n\n\n\n", methods:{"clone":{file:"kernel/common/string.rb", lines:[34, 34]}, "yaml_new":{file:"lib/yaml/rubytypes.rb", lines:[150, 150]}, "allocate":{file:"kernel/common/string.rb", lines:[17, 17]}, "yaml_tag_subclasses?":{file:"lib/yaml/tag.rb", lines:[null, null]}, "dup":{file:"kernel/common/string.rb", lines:[34, 34]}, "pattern":{file:"kernel/bootstrap/string.rb", lines:[4, 4]}, "from_bytearray":{file:"kernel/common/string.rb", lines:[29, 29]}, "__class_init__":{file:"lib/yaml/rubytypes.rb", lines:[140, 140]}}, ancestors:["String", "FancyEnumerable", "Object", "Enumerable", "Comparable", "Object", "Kernel"], instance_methods:{"%":{file:"kernel/common/string.rb", lines:[60, 60]}, "start_with?":{file:"kernel/common/string.rb", lines:[1831, 1831]}, "modify!":{file:"kernel/common/string.rb", lines:[2491, 2491]}, "data":{}, "chars":{file:"kernel/common/string.rb", lines:[675, 675]}, ":=~":{file:"kernel/common/string.rb", lines:[186, 186]}, "swapcase!":{file:"kernel/common/string.rb", lines:[2074, 2074]}, "delete":{file:"kernel/common/string.rb", lines:[617, 617]}, "partition":{file:"kernel/common/string.rb", lines:[1375, 1375]}, "succ":{file:"kernel/common/string.rb", lines:[1983, 1983]}, "delete!":{file:"kernel/common/string.rb", lines:[623, 623]}, "full_to_i":{file:"kernel/common/string.rb", lines:[2636, 2636]}, "each:":{file:"lib/rbx/string.fy", lines:[29, 29]}, "resize_capacity":{file:"kernel/bootstrap/string.rb", lines:[103, 103]}, ":split":{file:"lib/rbx/string.fy", lines:[null, null]}, "find_string_reverse":{file:"kernel/bootstrap/string.rb", lines:[65, 65]}, "end_with?":{file:"kernel/common/string.rb", lines:[826, 826]}, "lines":{file:"kernel/common/string.rb", lines:[734, 734]}, "secure_compare":{file:"kernel/bootstrap/string.rb", lines:[76, 76]}, ":raise!":{doc:"Raises a new StdError with self as the message.
\n\n\n\n", arg:[], file:"lib/string.fy", lines:[51, 51]}, "rstrip!":{file:"kernel/common/string.rb", lines:[1460, 1460]}, "tr":{file:"kernel/common/string.rb", lines:[2138, 2138]}, "gsub":{file:"kernel/common/string.rb", lines:[867, 867]}, "tr_s":{file:"kernel/common/string.rb", lines:[2156, 2156]}, "dup":{file:"kernel/bootstrap/string.rb", lines:[26, 26]}, "find_character":{file:"kernel/bootstrap/string.rb", lines:[92, 92]}, "data=":{}, "count_table":{file:"kernel/common/string.rb", lines:[2425, 2425]}, "insert":{file:"kernel/common/string.rb", lines:[1130, 1130]}, "next":{file:"kernel/common/string.rb", lines:[1983, 1983]}, "justify":{file:"kernel/common/string.rb", lines:[2453, 2453]}, "rjust":{file:"kernel/common/string.rb", lines:[1441, 1441]}, "strip":{file:"kernel/common/string.rb", lines:[1844, 1844]}, "strip!":{file:"kernel/common/string.rb", lines:[1850, 1850]}, "inspect":{file:"kernel/common/string.rb", lines:[1172, 1172]}, ":upcase":{file:"kernel/common/string.rb", lines:[2171, 2171]}, "tr_trans":{file:"kernel/common/string.rb", lines:[2214, 2214]}, "to_s":{file:"kernel/common/string.rb", lines:[2122, 2122]}, ":whitespace?":{doc:"Indicates, if a String is empty or a single whitespace character.
\n\n\n\n", arg:[], file:"lib/string.fy", lines:[22, 22]}, "__data__":{}, "to_i":{file:"kernel/common/string.rb", lines:[2114, 2114]}, "rindex":{file:"kernel/common/string.rb", lines:[1319, 1319]}, "splice!":{file:"kernel/common/string.rb", lines:[2538, 2538]}, "is_binary_data?":{file:"lib/yaml/rubytypes.rb", lines:[147, 147]}, "size":{file:"kernel/bootstrap/string.rb", lines:[85, 85]}, "sub!":{file:"kernel/common/string.rb", lines:[1927, 1927]}, "subpattern_set":{file:"kernel/common/string.rb", lines:[2521, 2521]}, "rstrip":{file:"kernel/common/string.rb", lines:[1450, 1450]}, "replace":{file:"kernel/common/string.rb", lines:[1265, 1265]}, "lstrip":{file:"kernel/common/string.rb", lines:[1195, 1195]}, "=~":{file:"kernel/common/string.rb", lines:[186, 186]}, "downcase!":{file:"kernel/common/string.rb", lines:[661, 661]}, "num_bytes":{}, "dump":{file:"kernel/common/string.rb", lines:[2611, 2611]}, "include?":{file:"kernel/common/string.rb", lines:[1063, 1063]}, "next!":{file:"kernel/common/string.rb", lines:[1989, 1989]}, "[]=":{file:"kernel/common/string.rb", lines:[322, 322]}, "num_bytes=":{}, "==":{file:"kernel/common/string.rb", lines:[165, 165]}, "unpack":{file:"kernel/common/string.rb", lines:[2800, 2800]}, "each_line":{file:"kernel/common/string.rb", lines:[734, 734]}, "at:":{file:"lib/rbx/string.fy", lines:[33, 33]}, "upcase!":{file:"kernel/common/string.rb", lines:[2179, 2179]}, "split:":{file:"lib/rbx/string.fy", lines:[37, 37]}, "copy_from":{file:"kernel/bootstrap/string.rb", lines:[31, 31]}, "rpartition":{file:"kernel/common/string.rb", lines:[1412, 1412]}, "concat":{file:"kernel/common/string.rb", lines:[105, 105]}, "__marshal__":{file:"kernel/common/marshal.rb", lines:[69, 69]}, "crypt":{file:"kernel/common/string.rb", lines:[600, 600]}, ":rest":{doc:"Returns a String
containing all but the first character.
Returns a string that is the num-fold concatenation of itself.
\n\n\n\n", arg:["num"], file:"lib/string.fy", lines:[38, 38]}, "squeeze":{file:"kernel/common/string.rb", lines:[1802, 1802]}, "reverse":{file:"kernel/common/string.rb", lines:[1289, 1289]}, "tr!":{file:"kernel/common/string.rb", lines:[2145, 2145]}, ":downcase":{file:"kernel/common/string.rb", lines:[651, 651]}, "scan":{file:"kernel/common/string.rb", lines:[1506, 1506]}, "to_sexp":{file:"lib/melbourne.rb", lines:[19, 19]}, ":to_f":{file:"kernel/bootstrap/string.rb", lines:[9, 9]}, ":[]":{doc:"Given an Array of 2 Numbers, it returns the substring between the given indices.\nIf given a Number, returns the character at that index.
\n\n\n\n", arg:["index"], file:"lib/rbx/string.fy", lines:[22, 22]}, "swapcase":{file:"kernel/common/string.rb", lines:[2068, 2068]}, ":to_sexp":{file:"lib/rbx/string.fy", lines:[56, 56]}, "count":{file:"kernel/common/string.rb", lines:[581, 581]}, "subpattern":{file:"kernel/common/string.rb", lines:[2503, 2503]}, "gsub!":{file:"kernel/common/string.rb", lines:[966, 966]}, "*":{file:"kernel/common/string.rb", lines:[78, 78]}, "split":{file:"kernel/common/string.rb", lines:[1626, 1626]}, "eql?":{file:"kernel/common/string.rb", lines:[837, 837]}, "to_f":{file:"kernel/bootstrap/string.rb", lines:[9, 9]}, "lstrip!":{file:"kernel/common/string.rb", lines:[1205, 1205]}, "apply_and!":{file:"kernel/common/string.rb", lines:[2413, 2413]}, "intern":{file:"kernel/alpha.rb", lines:[402, 402]}, "index":{file:"kernel/common/string.rb", lines:[1084, 1084]}, "reverse!":{file:"kernel/common/string.rb", lines:[1294, 1294]}, "to_sub_replacement":{file:"kernel/common/string.rb", lines:[2286, 2286]}, ":==":{file:"kernel/common/string.rb", lines:[165, 165]}, "transform":{file:"kernel/bootstrap/string.rb", lines:[98, 98]}, "to_yaml":{file:"lib/yaml/rubytypes.rb", lines:[165, 165]}, "characters":{}, "chop":{file:"kernel/common/string.rb", lines:[550, 550]}, ":chomp":{file:"kernel/common/string.rb", lines:[491, 491]}, "capitalize!":{file:"kernel/common/string.rb", lines:[428, 428]}, "<=>":{file:"kernel/common/string.rb", lines:[143, 143]}, "<<":{file:"kernel/common/string.rb", lines:[105, 105]}, "[]":{file:"kernel/common/string.rb", lines:[243, 243]}, "each":{file:"kernel/common/string.rb", lines:[734, 734]}, "chop!":{file:"kernel/common/string.rb", lines:[557, 557]}, "to_inum":{file:"kernel/common/string.rb", lines:[2327, 2327]}, "taguri":{file:"lib/yaml/tag.rb", lines:[64, 64]}, "sum":{file:"kernel/common/string.rb", lines:[2052, 2052]}, "suffix?":{file:"kernel/common/string.rb", lines:[2599, 2599]}, "characters=":{}, "each_char":{file:"kernel/common/string.rb", lines:[675, 675]}, "slice":{file:"kernel/common/string.rb", lines:[243, 243]}, ":+":{file:"kernel/common/string.rb", lines:[92, 92]}, "slice!":{file:"kernel/common/string.rb", lines:[1563, 1563]}, "split_on_string":{file:"kernel/common/string.rb", lines:[1768, 1768]}, "length":{file:"kernel/bootstrap/string.rb", lines:[85, 85]}, "to_str":{file:"kernel/common/string.rb", lines:[2122, 2122]}, "shorten!":{file:"kernel/common/string.rb", lines:[2605, 2605]}, "center":{file:"kernel/common/string.rb", lines:[474, 474]}, "convert_float":{file:"kernel/bootstrap/string.rb", lines:[9, 9]}, "ljust":{file:"kernel/common/string.rb", lines:[1186, 1186]}, ":eval":{file:"lib/rbx/string.fy", lines:[45, 45]}, "substring":{file:"kernel/bootstrap/string.rb", lines:[37, 37]}, "+":{file:"kernel/common/string.rb", lines:[92, 92]}, "hex":{file:"kernel/common/string.rb", lines:[1053, 1053]}, "__data__=":{}, "each_byte":{file:"kernel/common/string.rb", lines:[696, 696]}, "compare_substring":{file:"kernel/common/string.rb", lines:[2418, 2418]}, "tr_s!":{file:"kernel/common/string.rb", lines:[2162, 2162]}, ":words":{file:"lib/string.fy", lines:[46, 46]}, "__crypt__":{file:"kernel/bootstrap/string.rb", lines:[16, 16]}, "bytesize":{file:"kernel/bootstrap/string.rb", lines:[85, 85]}, "capitalize":{file:"kernel/common/string.rb", lines:[408, 408]}, "from:to:":{file:"lib/rbx/string.fy", lines:[25, 25]}, ":blank?":{doc:"Indicates, if a String consists only of whitespace.
\n\n\n\n", arg:[], file:"lib/string.fy", lines:[28, 28]}, "initialize_copy":{file:"kernel/common/string.rb", lines:[1265, 1265]}, "downcase":{file:"kernel/common/string.rb", lines:[651, 651]}, "taguri=":{}, "bytes":{file:"kernel/common/string.rb", lines:[696, 696]}, "to_ast":{file:"lib/melbourne.rb", lines:[15, 15]}, "upto":{file:"kernel/common/string.rb", lines:[2198, 2198]}, "oct":{file:"kernel/common/string.rb", lines:[1255, 1255]}, "upcase":{file:"kernel/common/string.rb", lines:[2171, 2171]}, "shared!":{file:"kernel/common/string.rb", lines:[2618, 2618]}, "tr_expand!":{file:"kernel/common/string.rb", lines:[2449, 2449]}, "chomp!":{file:"kernel/common/string.rb", lines:[501, 501]}, "is_complex_yaml?":{file:"lib/yaml/rubytypes.rb", lines:[143, 143]}, "get_pattern":{file:"kernel/common/string.rb", lines:[2622, 2622]}, "squeeze!":{file:"kernel/common/string.rb", lines:[1808, 1808]}, "to_sym":{file:"kernel/alpha.rb", lines:[402, 402]}, ":to_i":{file:"kernel/common/string.rb", lines:[2114, 2114]}, "match":{file:"kernel/common/string.rb", lines:[1234, 1234]}, "sub":{file:"kernel/common/string.rb", lines:[1879, 1879]}, "succ!":{file:"kernel/common/string.rb", lines:[1989, 1989]}, ":++":{doc:"Concatenate the String with another String
\n\n\n\n", arg:["other"], file:"lib/string.fy", lines:[16, 16]}, "chomp":{file:"kernel/common/string.rb", lines:[491, 491]}, ":eval_global":{file:"lib/rbx/string.fy", lines:[52, 52]}}}, "Class":{doc:"This class is the class of Class
objects - e.g. Object
, Array
,\nString
etc.\nAny class in the language is an instance of this class, as in Ruby\nor Smalltalk.
Creates a new Class
by subclassing superclass
and using
Defines an alias method for another method.
\n\n \n\n", arg:["new_method_name", "old_method_name"], file:"lib/class.fy", lines:[105, 105]}, "define_constructor_class_method:":{}, ":ancestors":{file:"kernel/common/module.rb", lines:[148, 148]}, "define_slot_reader:":{doc:"Defines a slot reader method with a given name.\nE.g. for a slotname count
it will define the following method:
def count {\n get_slot: 'count\n}\n
\n\n \n\n", arg:["slotname"], file:"lib/class.fy", lines:[23, 23]}, "initialize":{file:"kernel/common/class.rb", lines:[56, 56]}, "subclass:":{doc:"Creates a new Class
with self
as superclass and the given body.
Returns an instance method for a Class
with a given name.
Defines slot reader & writer methods for all given slotnames.
\n\n \n\n", arg:["slots"], file:"lib/class.fy", lines:[72, 72]}, ":nested_classes":{doc:"Returns all the nested classes within a Class
as an Array
.
Defines a class method on a Class
(a singleton method) with a\ngiven name and body.
Creates a new Class
instance by subclassing Object
.
Indicates, if a Class is a subclass of another Class.
\n\n \n\n", arg:["class_obj"], file:"lib/class.fy", lines:[94, 94]}, "packed!":{file:"kernel/bootstrap/class.rb", lines:[18, 18]}, "initialize_copy":{file:"kernel/common/class.rb", lines:[75, 75]}, "allocate":{file:"kernel/alpha.rb", lines:[80, 80]}, "undefine_method:":{doc:"Undefines an instance method on a Class with a given name.
\n\n \n\n", arg:["name"], file:"lib/rbx/class.fy", lines:[65, 65]}, "undefine_class_method:":{doc:"Undefines a class method on a Class
with a given name.
Defines a slot writer method with a given name.\nE.g. for a slotname count
it will define the following method:
def count: c {\n set_slot: 'count value: c\n}\n
\n\n \n\n", arg:["slotname"], file:"lib/class.fy", lines:[39, 39]}, "read_slots:":{doc:"Defines slot reader methods for all given slotnames.
\n\n \n\n", arg:["slots"], file:"lib/class.fy", lines:[48, 48]}, "write_slots:":{doc:"Defines slot writer methods for all given slotnames.
\n\n \n\n", arg:["slots"], file:"lib/class.fy", lines:[60, 60]}, "new":{file:"kernel/alpha.rb", lines:[92, 92]}, "new:":{doc:"Creates a new Class
instance by subclassing superclass
.
Defines an instance method on a Class
with a given name and\nbody.
Rbx specific version of alias_method:for: due to bootstrap order\nreasons. Should not be used directly.
\n\n\n\n", arg:["new_method_name", "old_method_name"], file:"lib/rbx/class.fy", lines:[128, 128]}}}, "Stack":{doc:"A simple Stack container class.
\n\n\n\n", methods:{"__class_init__":{file:"lib/stack.fy", lines:[4, 4]}}, ancestors:["Stack", "Object", "Kernel"], instance_methods:{"initialize:":{doc:"Initializes a new Stack with a given size.
\n\n\n\n", arg:["size"], file:"lib/stack.fy", lines:[13, 13]}, ":initialize":{file:"lib/stack.fy", lines:[7, 7]}, ":size":{doc:"Returns the size of the Stack.
\n\n\n\n", arg:[], file:"lib/stack.fy", lines:[43, 43]}, ":top":{doc:"Returns the top-of-stack element.
\n\n\n\n", arg:[], file:"lib/stack.fy", lines:[37, 37]}, "push:":{doc:"Pushes a value onto the Stack.
\n\n\n\n", arg:["obj"], file:"lib/stack.fy", lines:[19, 19]}, ":pop":{doc:"Pops the top-of-stack element from the Stack and returns it.
\n\n\n\n", arg:[], file:"lib/stack.fy", lines:[31, 31]}, ":empty?":{doc:"Indicates, if the Stack is empty.
\n\n\n\n", arg:[], file:"lib/stack.fy", lines:[49, 49]}, ":<<":{doc:"Same as Stack#push:.
\n\n\n\n", arg:["obj"], file:"lib/stack.fy", lines:[25, 25]}}}, "FancySpec NegativeMatcher":{doc:"NegativeMatcher expects its actual value to be unequal to an\nexpected value.\nIf the values are equal, a SpecTest failure is generated.
\n\n\n\n", methods:{"__class_init__":{file:"lib/fancy_spec.fy", lines:[158, 158]}}, ancestors:["FancySpec NegativeMatcher", "Object", "Kernel"], instance_methods:{"initialize:":{file:"lib/fancy_spec.fy", lines:[null, null]}, "unknown_message:with_params:":{doc:"Forwardy any other message and parameters to the object itself\nand checks the return value.
\n\n\n\n", arg:["msg", "params"], file:"lib/fancy_spec.fy", lines:[182, 182]}, ":==":{file:"lib/fancy_spec.fy", lines:[164, 164]}, ":!=":{file:"lib/fancy_spec.fy", lines:[170, 170]}, "be:":{file:"lib/fancy_spec.fy", lines:[185, 185]}, "method_missing":{}}}}, objects:{}}); })();