Results for: "Array.new"

Compile a OptionalKeywordParameterNode node

Compile a RequiredKeywordParameterNode node

Desugar ‘x ||= y` to `defined?(x) ? x : x = y`

Dispatch enter and leave events for ClassVariableTargetNode nodes and continue walking the tree.

Dispatch enter and leave events for GlobalVariableTargetNode nodes and continue walking the tree.

Dispatch enter and leave events for InstanceVariableTargetNode nodes and continue walking the tree.

Dispatch enter and leave events for KeywordRestParameterNode nodes and continue walking the tree.

Dispatch enter and leave events for LocalVariableTargetNode nodes and continue walking the tree.

Dispatch enter and leave events for NoKeywordsParameterNode nodes and continue walking the tree.

Dispatch enter and leave events for OptionalKeywordParameterNode nodes and continue walking the tree.

Dispatch enter and leave events for RequiredKeywordParameterNode nodes and continue walking the tree.

Copy a ClassVariableTargetNode node

Copy a GlobalVariableTargetNode node

Copy a InstanceVariableTargetNode node

Copy a KeywordRestParameterNode node

Copy a LocalVariableTargetNode node

Copy a NoKeywordsParameterNode node

Copy a OptionalKeywordParameterNode node

Copy a RequiredKeywordParameterNode node

No documentation available
No documentation available

Parses the most indented lines into blocks that are marked and added to the frontier

Deprecated; prefer target.

Return the class refined by the receiver.

Returns an array of the grapheme clusters in self (see Unicode Grapheme Cluster Boundaries):

s = "\u0061\u0308-pqr-\u0062\u0308-xyz-\u0063\u0308" # => "ä-pqr-b̈-xyz-c̈"
s.grapheme_clusters
# => ["ä", "-", "p", "q", "r", "-", "b̈", "-", "x", "y", "z", "-", "c̈"]

Returns whether self starts with any of the given string_or_regexp.

Matches patterns against the beginning of self. For each given string_or_regexp, the pattern is:

Returns true if any pattern matches the beginning, false otherwise:

'hello'.start_with?('hell')               # => true
'hello'.start_with?(/H/i)                 # => true
'hello'.start_with?('heaven', 'hell')     # => true
'hello'.start_with?('heaven', 'paradise') # => false
'тест'.start_with?('т')                   # => true
'こんにちは'.start_with?('こ')              # => true

Related: String#end_with?.

Search took: 5ms  ·  Total Results: 3047