Class: IV::Phonic::AST::RegExpLiteral
- Inherits:
-
Literal
- Object
- Node
- Expression
- Literal
- IV::Phonic::AST::RegExpLiteral
- Defined in:
- lib/iv/phonic/ast.rb
Instance Method Summary collapse
-
#initialize(parent, expr) ⇒ RegExpLiteral
constructor
A new instance of RegExpLiteral.
Methods inherited from Expression
Methods inherited from Node
#begin_position, #end_position, #program, #source
Constructor Details
#initialize(parent, expr) ⇒ RegExpLiteral
Returns a new instance of RegExpLiteral.
409 410 411 412 413 |
# File 'lib/iv/phonic/ast.rb', line 409 def initialize parent, expr super parent, expr @value = expr[:value] @flags = expr[:flags] end |