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
    fux 32 bar bletch bar should add all the flags as the last argument show source m parse foo 1 bar mx m should internal compositeRegexp foo 1 bar mx should interpolate an empty expression show source ab should match internal compositeRegexp a b xabx should match internal compositeRegexp a b should interpolate an inner expression show source abc should match internal compositeRegexp a b c fabcf should match internal compositeRegexp a b c ac should not match internal compositeRegexp a b c abc should match internal compositeRegexp b fabcf should match internal compositeRegexp b ac should not match internal compositeRegexp b should interpolate an inner expression from a variable show source outer b abc should match internal compositeRegexp a outer c fabcf should match internal compositeRegexp a outer c ac should not match internal compositeRegexp a outer c abc should match internal compositeRegexp outer fabcf should match internal compositeRegexp outer ac should not match internal compositeRegexp outer should combine different flags during interpolation show source one abc i two a b c x ABC should match internal compositeRegexp one abc should match internal compositeRegexp two xABCx should match internal compositeRegexp x one x XABCX should not match internal compositeRegexp x one x should combine regexps correctly with parenthesis show source a hi b internal compositeRegexp a c internal compositeRegexp a hi should match a hi should match b hi should match c ho should not match a ho should not match b ho should not match c should handle escapes correctly when doing interpolation show source p hi r internal compositeRegexp A p Z r should A ixmus hi Z hi should match r nhi should not match r Inactive cells details kind Regexp Active cells details text returns true if the regular expression doesn t match otherwise false show source method text if self text false true Regexp should return a false value when matching show source foo foo should not be true fo 1 2 foo should not be true foo x foo x should not be true foo foo should not be true foo foo bar should not be true foo bar foo should not be true should return true when not matching show source fo 3 foo should be true fox x foo x should be true foo foo should be true foo foo bar should be true foo bar foo should be true other returns true if the left hand side pattern is equal to the right hand side pattern other nil show source method other if self same Regexp 0 Reflector other mimics cell other Regexp 0 bind rescue Condition Error fn c false self other Regexp should check for mimicness if receiver is Regexp show source Regexp should Regexp Regexp should Regexp should foo Regexp should bar mx Regexp should not 123 Regexp should not foo Regexp should not foo bar should check for match if receiver is not Regexp show source foo should foo fo 1 2 should foo foo should

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


  • Kind: DefaultBehavior
    list the actual match text is not included in this list Regexp Match captures should not return the match itself show source foo foo captures should should return all matches in the regexp show source f foo captures should o o should return unmatched groups as nil show source f foo captures should o o nil should validate type of receiver show source Regexp Match should checkReceiverTypeOn captures end index 0 Takes one optional argument that should be either a number or a symbol this should be the name or index of a group to return the end index for if no index is supplied 0 is the default if the group in question wasn t matched returns 1 Regexp Match end should return the end index of group zero which is the whole group show source foo foobar end should 3 foo abcfoobar end should 6 foo foobar end 0 should 3 foo abcfoobar end 0 should 6 should return the end index of another group show source fooab cd efbar end 2 should 8 should return the end index from the name of a named group show source one two three fooab cd efbar end two should 8 should return 1 for a group that wasn t matched show source ab end 2 should 1 no way ab end way should 1 ab end 10 should 1 no way ab end blarg should 1 should validate type of receiver show source Regexp Match should checkReceiverTypeOn end length returns the number of groups available in this match Regexp Match length should return the number of groups in the regexp including the whole match show source foo foo length should 1 f o o foo length should 3 f o o x foo length should 4 should validate type of receiver show source Regexp Match should checkReceiverTypeOn length match returns the text that matched Regexp Match match should return the fully matched text show source foobar match should ar should validate type of receiver show source Regexp Match should checkReceiverTypeOn match namedOffsets returns a dictionary of all the names in this match the keys will be symbols and the values either pairs of indices or nil show source method names inject sum name sum name offset name Regexp Match namedOffsets should return an empty dict for a regexp with no groups show source foo foobar namedOffsets should foo foobar namedOffsets should should return a dict with all named groups show source one two three fooab cd efbar namedOffsets should one 3 5 two 6 8 three 9 11 should return nil for a group that wasn t matched show source no way ab namedOffsets should no 0 2 way nil names returns a list of all the named groups in the regular expression used to create this match Regexp Match names should return an empty list for a pattern that doesn t have any named groups show source foo match foo names should f o o match foo names should

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

  • Kind: DefaultBehavior
    Restart is the actual object that contains restart information Mimics Origin Inactive cells code kind name report test Active cells argumentNames Specs Inactive cells details code fn kind Restart name nil report fn test fn Active cells details argumentNames nil

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

  • Kind: DefaultBehavior
    used incorrectly it will not copy the state of this runtime but just create a new one from scratch nodeId returns the node id for the runtime it s called on Runtime nodeId should return 1 for the first runtime running in the same process space show source Runtime nodeId should 1 should return something that is not 1 for the next created runtime show source Runtime create nodeId should

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

  • Kind: DefaultBehavior
    elements together show source ss Sequence Zip create SequenceTester with val 1 2 3 len 3 seq Ground SequenceTester with val 9 10 11 len 3 seq ss next should 1 9 ss asList should 2 10 3 11 should supply nils if the second list isn t long enough show source ss Sequence Zip create SequenceTester with val 1 2 3 len 3 seq Ground 5 6 ss next should 1 5 ss asList should 2 6 3 nil should zip together several lists show source ss Sequence Zip create SequenceTester with val 1 2 3 len 3 seq Ground 5 6 7 10 11 12 15 16 17 ss next should 1 5 10 15 ss asList should 2 6 11 16 3 7 12 17 Inactive cells details kind Sequence Active cells details inbetween nil show source method inbetween Sequence Interpose create inbetween Sequence should create a new sequence show source 1 2 3 seq 42 should mimic Sequence should interpose the argument inbetween the elements of the original sequence show source foo bar quux seq asList should foo bar quux right nil show source method right Sequence Interleave create right Sequence should create a new sequence show source 1 2 3 seq 1 5 should mimic Sequence should take an enumerable show source 1 2 3 seq 5 15 asList should 1 5 2 6 3 7 should take a seq show source 1 2 3 seq 5 15 seq asList should 1 5 2 6 3 7 should only take as many elements as needed from the self show source 1 2 3 4 5 6 seq 10 11 asList should 1 10 2 11 should only take as many elements as needed from the argument show source 1 2 seq 10 11 12 13 14 15 asList should 1 10 2 11 should interleave the elements of the argument with the elements of the sequence show source foo bar quux seq 1 3 asList should foo 1 bar 2 quux 3 other nil show source method other Sequence Combination create other Sequence should return a new sequence that first runs the lhs sequence then the rhs sequence show source 1 2 3 seq 5 6 7 8 seq take 5 should 1 2 3 5 6 collected nil show source macro Sequence Map create call ground call arguments Sequence collected should create a new Sequence Map with the arguments sent to it show source ss SequenceTester with val 1 2 3 len 3 seq val ss collected 2 val should mimic Sequence Map val wrappedSequence should be same ss val messages should 2 should map the objects show source ss SequenceTester with val 1 2 3 len 3 seq ss collected 2 asList should 2 4 6 ss SequenceTester with val 1 2 3 len 3 seq ss collected x x 2 asList should 2 4 6 dropped howManyToDrop nil show source method howManyToDrop Sequence Drop create Ground howManyToDrop Sequence dropped should create a new Sequence Drop with the arguments sent to it show source ss SequenceTester with val 1 2 3 4 5 6 7 8 len 8 seq val ss dropped 3 val should mimic Sequence Drop val wrappedSequence should be same ss val messages should val restArguments should 3 should drop the objects show source ss SequenceTester with val 1 2 4 5 6 7 8 len 7 seq ss dropped 3 asList should 5 6 7 8 ss SequenceTester with val 1 2 4 5 6 7 8 len 7 seq ss dropped 10 asList should droppedWhile nil show source macro Sequence DropWhile create call ground call arguments Sequence droppedWhile should create a new Sequence DropWhile with the arguments sent to it show source ss SequenceTester with val 1 2 3 4 5 6 7 8 len 8 seq val ss droppedWhile 4 val should mimic Sequence DropWhile val wrappedSequence should be same ss val messages should 4 should drop the objects show source ss SequenceTester with val true true 1 false 2 3 len 6 seq ss droppedWhile asList should false 2 3 ss SequenceTester with val 1 2 4 5 6 7 8 len 7 seq ss droppedWhile 3 asList should 4 5 6 7 8 ss SequenceTester with val 1 2 4 5 6 7 8 len 7 seq ss droppedWhile x x 3 asList should 4 5 6 7 8 each nil show source macro argCount call arguments length cond argCount 1 chain call arguments 0 while next chain evaluateOn call ground next argCount 2 argumentName call arguments 0 code call arguments 1 lexicalCode LexicalBlock createFrom list argumentName code call ground while next lexicalCode call next argCount 3 indexArgumentName call arguments 0 argumentName call arguments 1 code call arguments 2 lexicalCode LexicalBlock createFrom list indexArgumentName argumentName code call ground index 0 while next lexicalCode call index next index error Condition Error Invocation NoMatch message call message context call currentContext Sequence each should start from the point where the sequence is right now show source xx SequenceTester seq xx next should 1 y xx each x y x y should 2 3 4 5 6 7 8 should be possible to give it just a message chain show source Ground y Ground xs method y self SequenceTester seq each xs y should 1 2 3 4 5 6 7 8 x 0 SequenceTester seq each nil x x should 8 should be possible to give it an argument name and code show source y SequenceTester seq each x y x y should 1 2 3 4 5 6 7 8 should return the sequence show source y SequenceTester seq y each x x should be y should establish a lexical context when invoking the methods this context will be the same for all invocations show source SequenceTester seq each x list blarg 32 cell x list should be false cell blarg should be false x 14 SequenceTester seq each x blarg 32 x should 14 should be

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

  • Kind: DefaultBehavior
    Base Active cells details create wrappedSequence context messages rest nil show source method wrappedSequence context messages rest res mimic res wrappedSequence wrappedSequence res context context res messages messages res restArguments rest if messages length 2 res lexicalBlock LexicalBlock createFrom messages

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

  • Kind: DefaultBehavior
    Inactive cells details kind Sequence Combination Active cells details create left right nil show source method left right newObj mimic newObj current left newObj right true newObj right right newObj next nil show source method if current next current next

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

  • Kind: DefaultBehavior
    next next Specs Inactive cells details kind Sequence Drop Active cells details next nil show source method if current current false cell current while wrappedSequence next n wrappedSequence next x transformValue cell n if if restArguments 0 0 true restArguments 0 restArguments 0 1 false return cell n next nil show source method if current true while wrappedSequence next n wrappedSequence next x transformValue cell n if if restArguments 0

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



  •