Class: Melbourne::AST::DynamicRegex

Inherits:
DynamicString show all
Defined in:
lib/melbourne/ast/literals.rb

Overview

A dynamic regular expression literal as in:

/.*#{a}/

Direct Known Subclasses

DynamicOnceRegex

Instance Attribute Summary

Attributes inherited from DynamicString

#array, #options

Attributes inherited from StringLiteral

#string

Attributes inherited from Node

#line

Instance Method Summary collapse

Methods inherited from Node

#ascii_graph

Constructor Details

#initialize(line, str, array, flags) ⇒ DynamicRegex

Returns a new instance of DynamicRegex.



246
247
248
249
# File 'lib/melbourne/ast/literals.rb', line 246

def initialize(line, str, array, flags)
  super line, str, array
  @options = flags || 0
end