Class: Melbourne::AST::DynamicRegex
- Inherits:
-
DynamicString
- Object
- Node
- StringLiteral
- DynamicString
- Melbourne::AST::DynamicRegex
- Defined in:
- lib/melbourne/ast/literals.rb
Overview
A dynamic regular expression literal as in:
/.*#{a}/
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from DynamicString
Attributes inherited from StringLiteral
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, str, array, flags) ⇒ DynamicRegex
constructor
A new instance of DynamicRegex.
Methods inherited from Node
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 = flags || 0 end |