Creates a new LOC::Size
from arg
which may be:
Creates a new LOC::Coord
from arg
which may be:
LOC::Coord
returns arg
.
String
arg
must match the LOC::Coord::Regex constant
Creates a new LOC::Alt
from arg
which may be:
Iterates over files in the tarball yielding each entry
Block form for restricting gems to a set of platforms.
The gem dependencies platform is different from Gem::Platform
. A platform gem.deps.rb platform matches on the ruby engine, the ruby version and whether or not windows is allowed.
Matches non-windows, non-jruby implementations where X and Y can be used to match releases in the 1.8, 1.9, 2.0 or 2.1 series.
Matches non-windows C Ruby (Matz Ruby) or only the 1.8, 1.9, 2.0 or 2.1 series.
Matches 32 bit C Ruby on MinGW or only the 1.8, 1.9, 2.0 or 2.1 series.
Matches 64 bit C Ruby on MinGW or only the 1.8, 1.9, 2.0 or 2.1 series.
Matches 32 bit C Ruby on Microsoft Windows or only the 1.8, 1.9, 2.0 or 2.1 series.
Matches 64 bit C Ruby on Microsoft Windows or only the 1.8, 1.9, 2.0 or 2.1 series.
Matches JRuby or JRuby in 1.8 or 1.9 mode.
Matches Maglev
Matches non-windows Rubinius
NOTE: There is inconsistency in what environment a platform matches. You may need to read the source to know the exact details.
Block form for restricting gems to a particular set of platforms. See platform
.
The platform of this activation request’s specification
Explanation of the conflict used by exceptions to print useful messages
The platform this gem works on.
Does not print message
when updated as this object has taken a vow of silence.
Prints out a dot and ignores message
.
Prints out the position relative to the total and the message
.
Nothing can update the silent download reporter.
Updates the threaded download reporter for the given number of bytes
.
Returns the file name of this frame. This will generally be an absolute path, unless the frame is in the main script, in which case it will be the script location passed on the command line.
For example, using caller_locations.rb
from Thread::Backtrace::Location
loc = c(0..1).first loc.path #=> caller_locations.rb
Compile a ConstantPathOperatorWriteNode
node
Dispatch enter and leave events for ConstantPathOperatorWriteNode
nodes and continue walking the tree.
Copy a ConstantPathOperatorWriteNode
node
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}]