Class: Solargraph::Pin::While

Inherits:
CompoundStatement show all
Includes:
Breakable
Defined in:
lib/solargraph/pin/while.rb

Instance Attribute Summary

Attributes included from Breakable

#location, #node

Attributes inherited from CompoundStatement

#node

Instance Method Summary collapse

Constructor Details

#initialize(node: nil, **splat) ⇒ While

Returns a new instance of While.

Parameters:

  • node (Parser::AST::Node, nil) (defaults to: nil)
  • splat (Hash{Symbol => Object})


10
11
12
13
# File 'lib/solargraph/pin/while.rb', line 10

def initialize node: nil, **splat
  super(**splat)
  @node = node
end