Sha256: 093f5576288d2ef8222efb3af835dde77f2c4d608a0353195a96f11186a580fd
Contents?: true
Size: 1.03 KB
Versions: 22
Compression:
Stored size: 1.03 KB
Contents
EACH OBJECT TYPE NAME: each SHORTCUT: each DESCRIPTION Perform an action for each item in a collection. CHILDREN child | word | line | repo - string - none The entity we want to loop for. It will hold the current value while the script is running. in - string - none The collection we will iterate in. In the case of <word> or <line> this will be a string or text. In the case of <repo> this will be the root path. do - script - none The action we want to perform for each found item. MESSAGES run - Look through the collecion and perform this for each found item. EXAMPLE # # Show each child in a container. # for [each] : child [alias] : in [alias] : objs do [script] : show for.child objs [can] : 1 [string] : one 2 [string] : two 3 [string] : three # # Show each word in a string. # for [each] : word [string] : in [string] : one word at a time do [script] : show for.word SEE ALSO
Version data entries
22 entries across 22 versions & 2 rubygems