Represents the location of the call operator.
foo.bar += value ^
Represents the location of the call operator.
foo.bar ||= value ^
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.
Create a new ConstantTargetNode
node.
Retrieve the value of one of the CallNodeFlags
flags.
foo.bar, = 1 ^^^^^^^
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