/(?<foo>foo)/ =~ bar ^^^^^^^^^^^^^^^^^^^^
if /foo #{bar}/ then end
^^^^^^^^^^^^
Returns a new lazy enumerator with the concatenated results of running block
once for every element in the lazy enumerator.
["foo", "bar"].lazy.flat_map {|i| i.each_char.lazy}.force #=> ["f", "o", "o", "b", "a", "r"]
A value x
returned by block
is decomposed if either of the following conditions is true:
x
responds to both each and force, which means that x
is a lazy enumerator.
x
is an array or responds to to_ary.
Otherwise, x
is contained as-is in the return value.
[{a:1}, {b:2}].lazy.flat_map {|i| i}.force #=> [{:a=>1}, {:b=>2}]
See Zlib::GzipReader
documentation for a description.
Iterate all direct child instruction sequences. Iteration order is implementation/version defined so that people should not rely on the order.
Attach the list of comments to their respective locations in the tree.
Returns a string representation of the syntax tree with the errors displayed inline.
Defaults to use Ruby’s program prefix and suffix.
This is ported over from the yaml_tree in 1.9.3
File
Fetcher. Dispatched by fetch_path
. Use it instead.
HTTP Fetcher. Dispatched by fetch_path
. Use it instead.
Returns true when it is possible and safe to update the cache directory.
Fetches a specification for the given name_tuple
.