Clear recorded tracing information.
Like Enumerable#select
, but chains operation to be lazy-evaluated.
Compile a CallNode
node
Dispatch enter and leave events for CallNode
nodes and continue walking the tree.
Copy a CallNode
node
Visit a CallNode
node.
Finds all tuples in the TupleBag
which when treated as templates, match tuple
and are alive.
Check state file is writable. Creates empty file if not present to ensure we can write to it.
Finds all gems that satisfy dep
Shows the context around code provided by “falling” indentation
Converts:
it "foo" do
into:
class OH def hello it "foo" do end end
Calls the block with each capitalized field name:
res = Net::HTTP.get_response(hostname, '/todos/1') res.each_capitalized_name do |key| p key if key.start_with?('C') end
Output:
"Content-Type" "Connection" "Cache-Control" "Cf-Cache-Status" "Cf-Ray"
The capitalization is system-dependent; see Case Mapping.
Returns an enumerator if no block is given.
Returns all tokens for the input script regardless the receiver node. Returns nil
if keep_tokens
is not enabled when parse method is called.
root = RubyVM::AbstractSyntaxTree.parse("x = 1 + 2", keep_tokens: true) root.all_tokens # => [[0, :tIDENTIFIER, "x", [1, 0, 1, 1]], [1, :tSP, " ", [1, 1, 1, 2]], ...] root.children[-1].all_tokens # => [[0, :tIDENTIFIER, "x", [1, 0, 1, 1]], [1, :tSP, " ", [1, 1, 1, 2]], ...]
General callback for OpenSSL
verify
Return an array of APISpecification objects matching DependencyRequest req
.
Finds all specs matching req
in all sets.
Finds all git gems matching req