Returns a Set
that can fetch specifications from this source.
The set will optionally fetch prereleases if requested.
Find
and fetch gem name tuples that match dependency
.
If matching_platform
is false, gems for all platforms are returned.
Finds stub specifications matching a pattern in the record, optionally filtering out specs not matching the current platform
Tells ‘scan_while` to look for mismatched keyword/end-s
When scanning up, if we see more keywords then end-s it will stop. This might happen when scanning outside of a method body. the first scan line up would be a keyword and this setting would trigger a stop.
When scanning down, stop if there are more end-s than keywords.
Private method to assemble query
from attributes
, scope
, filter
, and extensions
.
Sets the value of field 'Content-Type'
; returns the new value; see Content-Type request header:
req = Net::HTTP::Get.new(uri) req.set_content_type('application/json') # => ["application/json"]
Net::HTTPHeader#content_type=
is an alias for Net::HTTPHeader#set_content_type
.
foo => [bar] ^^^^^
def foo(&bar); end ^^^^
foo => bar => baz ^^^^^^^^^^
Visit a destructured positional parameter node.
END {} ^^^^^^
BEGIN {} ^^^^^^^^
def foo(bar); end ^^^
@@foo += bar
becomes
@@foo = @@foo + bar