archive-org.com » ORG » I » IOKE.ORG

Total: 746

Choose link from "Titles, links and description words view":

Or switch to "Titles and links view".
  • Kind: DefaultBehavior
    method Arity fromArgumentsCode argumentsCode call arguments activates this macro with the arguments given to call code returns the full code of this macro as a Text DefaultMacro code should validate type of receiver show source cell DefaultMacro should checkReceiverTypeOn code formattedCode returns idiomatically formatted code for this macro DefaultMacro formattedCode should validate type of receiver show source cell DefaultMacro should checkReceiverTypeOn formattedCode inspect Returns a text inspection of the object DefaultMacro inspect should return the code inside the macro show source macro foo bar inspect should macro foo bar macro 123 444 inspect should macro 123 444 should prep the name if it is available show source x macro foo bar cell x inspect should x macro foo bar x macro 123 444 cell x inspect should x macro 123 444 should validate type of receiver show source cell DefaultMacro should checkReceiverTypeOn inspect message returns the message chain for this macro DefaultMacro message should validate type of receiver show source cell DefaultMacro should checkReceiverTypeOn message name returns the name of the macro DefaultMacro name should validate type of receiver show source cell DefaultMacro should checkReceiverTypeOn name notice Returns a brief text inspection of the object DefaultMacro notice should just return

    Original URL path: https://ioke.org/dok/release/kinds/DefaultMacro.html (2016-02-13)
    Open archived version from archive


  • Kind: DefaultBehavior
    f 111 should 1 2 44 10 12 13 f 111 x 1111111 should be possible to splat out keyword arguments show source oneeach method a b c 12 d 15 rest krest a b c d rest krest oneeach 1 2 foo 123 bar 333 should 1 2 12 15 foo 123 bar 333 x foo 123 bar 333 oneeach 1 2 x should 1 2 12 15 foo 123 bar 333 oneeach 1 2 18 19 20 21 22 foo 123 bar 333 should 1 2 18 19 20 21 22 foo 123 bar 333 DefaultMethod notice should just return a simple description without code show source method notice should method method nil notice should method method foo bar xxxxxx notice should method should prep the name if there is a name available show source x method cell x notice should x method x method nil cell x notice should x method x method foo bar xxxxxx cell x notice should x method DefaultMethod rest should to give any length of arguments to a rest only argument show source restm method rest rest restm should restm 1 should 1 restm nil nil nil should nil nil nil restm 12 1 13 2 14 5 should 13 15 19 should to give both rest and regular arguments show source rest2 method a b rest a b rest rest2 1 2 should 1 2 rest2 1 2 3 should 1 2 3 rest2 1 2 3 4 5 2 should 1 2 3 4 7 should to give both rest optional and regular arguments show source rest3 method a b c 13 d 14 rest a b c d rest rest3 1 2 should 1 2 13 14 rest3 1 2 33 should 1 2 33 14 rest3 1 2

    Original URL path: https://ioke.org/dok/release/kinds/DefaultMethod.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    code returns the full code of this syntax as a Text DefaultSyntax code should validate type of receiver show source syntax should checkReceiverTypeOn code expand arguments returns the result of activating this syntax without actually doing the replacement or execution part DefaultSyntax expand should validate type of receiver show source syntax should checkReceiverTypeOn expand formattedCode returns idiomatically formatted code for this syntax DefaultSyntax formattedCode should validate type of receiver show

    Original URL path: https://ioke.org/dok/release/kinds/DefaultSyntax.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    will be mimics of Pair Dict each should return a seq when given no arguments show source x each x should mimic Sequence should not do anything for an empty dict show source x 0 each x x should 0 should be possible to just give it a message chain that will be invoked on each object show source d one 1 two 2 three 3 Pair y Pair x method y self d each x Pair y sort should one 1 two 2 three 3 sort x 0 one 1 two 2 three 3 each nil x x should 3 should be possible to give it an argument name and code show source y one 1 two 2 three 3 each x y x y sort should one 1 two 2 three 3 sort should return the object show source y one 1 two 2 three 3 y each x x should y should establish a lexical context when invoking the methods this context will be the same for all invocations show source one 1 two 2 three 3 each xxxx blargus42 32 cell xxxx should be false cell blargus42 should be false x 14 one 1 two 2 three 3 each x blarg 32 x should 14 should be possible to give it an extra argument to get the index show source y one 1 two 2 three 3 four 4 each i x y i y should 0 1 2 3 should validate type of receiver show source Dict should checkReceiverTypeOn each foo empty returns true if this dict is empty false otherwise hash returns a hash for the dictionary Dict hash should return the same number for equal dicts show source hash should hash x 1 1 y y 1 1 x hash should y hash 1 2 hash should 1 2 hash should return different numbers for different dicts show source 1 1 hash should not 1 1 hash should do the computation using recursive applications of hash show source x Origin mimic y Origin mimic x 1 hash should not y 1 hash 1 x hash should not 1 y hash x hash method 42 y hash method 42 x 1 hash should y 1 hash 1 x hash should 1 y hash inspect Returns a text inspection of the object Dict inspect should return something within curly brackets show source inspect should should try to use the keyword syntax if possible show source result foo bar bar foo inspect result foo bar bar foo result bar foo foo bar should be true foo bar inspect should foo bar should return the inspect format of things inside show source foo method abc foo bar inspect should foo method abc foo bar method abc foo bar foo inspect should method abc foo bar foo should return non keyword things with pair syntax show source 1 1 inspect should 1 1 bar 1 inspect should bar 1 key key takes one argument the key to check

    Original URL path: https://ioke.org/dok/release/kinds/Dict.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    nil FileSystem removeDirectory realname FileSystem directory fname should be false ensureDirectory dir takes one argument that is the relative or absolute path to something that should be a directory if it exists but isn t a directory a condition will be signalled if it exists and is a directory nothing is done and if it doesn t exist it will be created show source method dir if exists dir if file dir bind restart ignore fn error Condition Error IO text Can t create directory dir since it already exists and is a file createDirectory dir true exists entryName Takes one string argument and returns true if it s the relative or absolute name of something that exists FileSystem exists should return false for something that doesn t exit show source FileSystem exists flux flog should be false FileSystem exists src flux flog should be false FileSystem exists flux flog builtin should be false should return true for a file show source FileSystem exists build xml should be true FileSystem exists src builtin A10 defaultBehavior ik should be true should return true for a directory show source FileSystem exists src should be true FileSystem exists src should be true FileSystem exists src builtin should be true should expand tilde for the home directory show source realname FileSystemTestConfig homeDirectory something that should only exist for file system ioke tests fname something that should only exist for file system ioke tests FileSystem exists fname should be false ensure FileSystem withOpenFile realname fn f f println hello FileSystem exists fname should be true bind rescue Condition Error fn ignored nil FileSystem removeFile realname FileSystem exists fname should be false file fileName Takes one string argument and returns true if it s the relative or absolute name of a file and false otherwise FileSystem file should return false for something that doesn t exit show source FileSystem file flux flog should be false should return true for a file show source FileSystem file build xml should be true should return true for a file inside of a directory show source FileSystem file src builtin A10 defaultBehavior ik should be true should return false for a directory show source FileSystem file src should be false FileSystem file src should be false should return false for a directory inside another directory show source FileSystem file src builtin should be false should expand tilde for the home directory show source realname FileSystemTestConfig homeDirectory something that should only exist for file system ioke tests fname something that should only exist for file system ioke tests FileSystem file fname should be false ensure FileSystem withOpenFile realname fn f f println hello FileSystem file fname should be true bind rescue Condition Error fn ignored nil FileSystem removeFile realname FileSystem file fname should be false parentOf entryName Takes one string argument that should be the path of a file or directory and returns the parent of it or nil if there is no parent FileSystem parentOf should return nil for the

    Original URL path: https://ioke.org/dok/release/kinds/FileSystem.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    a file in the file system Mimics IO Inactive cells kind Active cells close Specs Inactive cells details kind FileSystem File Active cells details close Closes any open stream to this file FileSystem File close should validate type of receiver

    Original URL path: https://ioke.org/dok/release/kinds/FileSystem/File.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    code is evaluated in Mimics IokeGround JavaGround Inactive cells kind parse Active cells Specs Ground notice should return Ground show source Ground notice should Ground should not return Ground for a mimic show source Ground mimic notice should not Ground

    Original URL path: https://ioke.org/dok/release/kinds/Ground.html (2016-02-13)
    Open archived version from archive

  • Kind: DefaultBehavior
    Main mimic Origin A Handler contains handling information for handling a condition without unwinding the stack Mimics Origin Inactive cells kind Active cells Specs Inactive cells details kind Handler Active

    Original URL path: https://ioke.org/dok/release/kinds/Handler.html (2016-02-13)
    Open archived version from archive



  •