-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_to :craft
230 lines (152 loc) · 8.49 KB
/
_to :craft
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
= ..ffiinndd
(from ruby core)
=== IImmpplleemmeennttaattiioonn ffrroomm EEnnccooddiinngg
------------------------------------------------------------------------
Encoding.find(string) -> enc
------------------------------------------------------------------------
Search the encoding with specified _n_a_m_e. _n_a_m_e should be
a string.
Encoding.find("US-ASCII") #=> #<Encoding:US-ASCII>
Names which this method accept are encoding names and aliases including
following special aliases
"external":
default external encoding
"internal":
default internal encoding
"locale":
locale encoding
"filesystem":
filesystem encoding
An ArgumentError is raised when no encoding with _n_a_m_e. Only
Encoding.find("internal") however returns nil when no encoding named
"internal", in other words, when Ruby has no default internal encoding.
(from ruby core)
=== IImmpplleemmeennttaattiioonn ffrroomm EEnnuummeerraabbllee
------------------------------------------------------------------------
find(if_none_proc = nil) {|element| ... } -> object or nil
find(if_none_proc = nil) -> enumerator
------------------------------------------------------------------------
Returns the first element for which the block returns a truthy value.
With a block given, calls the block with successive elements of the
collection; returns the first element for which the block returns a
truthy value:
(0..9).find {|element| element > 2} # => 3
If no such element is found, calls if_none_proc and returns its return
value.
(0..9).find(proc {false}) {|element| element > 12} # => false
{foo: 0, bar: 1, baz: 2}.find {|key, value| key.start_with?('b') } # => [:bar, 1]
{foo: 0, bar: 1, baz: 2}.find(proc {[]}) {|key, value| key.start_with?('c') } # => []
With no block given, returns an Enumerator.
(from ruby core)
=== IImmpplleemmeennttaattiioonn ffrroomm FFiinndd
------------------------------------------------------------------------
find(*paths, ignore_error: true) { |path| ... }
------------------------------------------------------------------------
Calls the associated block with the name of every file and directory
listed as arguments, then recursively on their subdirectories, and so
on.
Returns an enumerator if no block is given.
See the Find module documentation for an example.
(from ruby core)
=== IImmpplleemmeennttaattiioonn ffrroomm FFiinndd
------------------------------------------------------------------------
find(*paths, ignore_error: true) { |path| ... }
------------------------------------------------------------------------
Calls the associated block with the name of every file and directory
listed as arguments, then recursively on their subdirectories, and so
on.
Returns an enumerator if no block is given.
See the Find module documentation for an example.
(from gem globalid-1.1.0)
=== IImmpplleemmeennttaattiioonn ffrroomm GGlloobbaallIIDD
------------------------------------------------------------------------
find(gid, options = {})
------------------------------------------------------------------------
(from gem globalid-1.1.0)
=== IImmpplleemmeennttaattiioonn ffrroomm GGlloobbaallIIDD
------------------------------------------------------------------------
find(options = {})
------------------------------------------------------------------------
(from ruby core)
=== IImmpplleemmeennttaattiioonn ffrroomm LLooccaallee
------------------------------------------------------------------------
find(file , paths = $:)
------------------------------------------------------------------------
(from gem mail-2.8.1)
=== IImmpplleemmeennttaattiioonn ffrroomm MMaaiill
------------------------------------------------------------------------
find(*args, &block)
------------------------------------------------------------------------
Find emails from the default retriever See Mail::Retriever for a
complete documentation.
(from gem mail-2.8.1)
=== IImmpplleemmeennttaattiioonn ffrroomm IIMMAAPP
------------------------------------------------------------------------
find(options=nil) { |new_message, imap, uid, attr| ... }
------------------------------------------------------------------------
Find emails in a IMAP mailbox. Without any options, the 10 last received
emails are returned.
Possible options:
mailbox: mailbox to search the email(s) in. The default is 'INBOX'.
what: last or first emails. The default is :first.
order: order of emails returned. Possible values are :asc or :desc. Default value is :asc.
count: number of emails to retrieve. The default value is 10. A value of 1 returns an
instance of Message, not an array of Message instances.
read_only: will ensure that no writes are made to the inbox during the session. Specifically, if this is
set to true, the code will use the EXAMINE command to retrieve the mail. If set to false, which
is the default, a SELECT command will be used to retrieve the mail
This is helpful when you don't want your messages to be set to read automatically. Default is false.
delete_after_find: flag for whether to delete each retreived email after find. Default
is false. Use #find_and_delete if you would like this to default to true.
keys: are passed as criteria to the SEARCH command. They can either be a string holding the entire search string,
or a single-dimension array of search keywords and arguments. Refer to [IMAP] section 6.4.4 for a full list
The default is 'ALL'
search_charset: charset to pass to IMAP server search. Omitted by default. Example: 'UTF-8' or 'ASCII'.
(from gem mail-2.8.1)
=== IImmpplleemmeennttaattiioonn ffrroomm PPOOPP33
------------------------------------------------------------------------
find(options = nil) { |new_message| ... }
------------------------------------------------------------------------
Find emails in a POP3 mailbox. Without any options, the 5 last received
emails are returned.
Possible options:
what: last or first emails. The default is :first.
order: order of emails returned. Possible values are :asc or :desc. Default value is :asc.
count: number of emails to retrieve. The default value is 10. A value of 1 returns an
instance of Message, not an array of Message instances.
delete_after_find: flag for whether to delete each retreived email after find. Default
is false. Use #find_and_delete if you would like this to default to true.
(from gem mail-2.8.1)
=== IImmpplleemmeennttaattiioonn ffrroomm TTeessttRReettrriieevveerr
------------------------------------------------------------------------
find(options = nil) { |email| ... }
------------------------------------------------------------------------
(from ruby core)
=== IImmpplleemmeennttaattiioonn ffrroomm PPaatthhnnaammee
------------------------------------------------------------------------
find(ignore_error: true) { |pathname| ... }
------------------------------------------------------------------------
Iterates over the directory tree in a depth first manner, yielding a
Pathname for each file under "this" directory.
Returns an Enumerator if no block is given.
Since it is implemented by the standard library module Find, Find.prune
can be used to control the traversal.
If self is ., yielded pathnames begin with a filename in the current
directory, not ./.
See Find.find
(from ruby core)
=== IImmpplleemmeennttaattiioonn ffrroomm RReessttrriicctteedd
------------------------------------------------------------------------
find(klassname)
------------------------------------------------------------------------
(from ruby core)
=== IImmpplleemmeennttaattiioonn ffrroomm TTuupplleeBBaagg
------------------------------------------------------------------------
find(template)
------------------------------------------------------------------------
Finds a live tuple that matches template.
(from ruby core)
=== IImmpplleemmeennttaattiioonn ffrroomm TTuupplleeBBiinn
------------------------------------------------------------------------
find() { |x| ... }
------------------------------------------------------------------------