Class: LibRubyParser::Nodes::RegOpt

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

Overview

Represents flags of the regex literal (i.e. mix for /foo/mix)

Instance Attribute Summary collapse

Instance Attribute Details

#expression_lLoc (readonly)

Location of the full expression

/foo/mix
     ~~~

Returns:



3487
3488
3489
# File 'lib/lib-ruby-parser/nodes.rb', line 3487

def expression_l
  @expression_l
end

#optionsString? (readonly)

A list of flags

Returns:

  • (String, nil)


3478
3479
3480
# File 'lib/lib-ruby-parser/nodes.rb', line 3478

def options
  @options
end