Class: Rubinius::AST::DynamicRegex

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

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 DynamicString

#to_sexp

Methods inherited from StringLiteral

#to_sexp

Methods inherited from Node

#ascii_graph, #attributes, #children, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, node_name, #pos, #set_child, #to_sexp, #transform, transform, transform_comment, transform_kind, transform_kind=, transform_name, #visit, #walk

Constructor Details

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

Returns a new instance of DynamicRegex.



185
186
187
188
# File 'lib/compiler/ast/literals.rb', line 185

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

Instance Method Details

#sexp_nameObject



190
191
192
# File 'lib/compiler/ast/literals.rb', line 190

def sexp_name
  :dregx
end