Class: LibRubyParser::Nodes::Break

Inherits:
LibRubyParser::Node show all
Defined in:
lib/lib-ruby-parser/nodes.rb

Overview

Represents a break keyword (with optional argument)

Instance Attribute Summary collapse

Instance Attribute Details

#args::Array<Node> (readonly)

A list of arguments

Returns:



471
472
473
# File 'lib/lib-ruby-parser/nodes.rb', line 471

def args
  @args
end

#expression_lLoc (readonly)

Location of the full expression

break(:foo)
~~~~~~~~~~~

Returns:



489
490
491
# File 'lib/lib-ruby-parser/nodes.rb', line 489

def expression_l
  @expression_l
end

#keyword_lLoc (readonly)

Location of the break keyword

break :foo
~~~~~

Returns:



480
481
482
# File 'lib/lib-ruby-parser/nodes.rb', line 480

def keyword_l
  @keyword_l
end