Class: Rubinius::ToolSet.current::TS::AST::DynamicRegex
- Inherits:
-
DynamicString
- Object
- Node
- StringLiteral
- DynamicString
- Rubinius::ToolSet.current::TS::AST::DynamicRegex
- Defined in:
- lib/rubinius/ast/literals.rb
Direct Known Subclasses
Instance Attribute Summary
Attributes inherited from DynamicString
Attributes inherited from StringLiteral
Attributes inherited from Node
Instance Method Summary collapse
- #bytecode(g) ⇒ Object
-
#initialize(line, str, array, flags) ⇒ DynamicRegex
constructor
A new instance of DynamicRegex.
- #sexp_name ⇒ Object
Methods inherited from DynamicString
Methods inherited from StringLiteral
Methods inherited from Node
#ascii_graph, #attributes, #children, #defined, match_arguments?, match_send?, #new_block_generator, #new_generator, #node_name, #or_bytecode, #pos, #set_child, #to_sexp, #transform, transform, transform_comment, transform_kind, transform_kind=, transform_name, #value_defined, #visit, #walk
Constructor Details
#initialize(line, str, array, flags) ⇒ DynamicRegex
Returns a new instance of DynamicRegex.
486 487 488 489 |
# File 'lib/rubinius/ast/literals.rb', line 486 def initialize(line, str, array, flags) super line, str, array @options = flags || 0 end |
Instance Method Details
#bytecode(g) ⇒ Object
491 492 493 494 495 496 497 |
# File 'lib/rubinius/ast/literals.rb', line 491 def bytecode(g) g.push_cpath_top g.find_const :Regexp super(g) g.push @options g.send :new, 2 end |
#sexp_name ⇒ Object
499 500 501 |
# File 'lib/rubinius/ast/literals.rb', line 499 def sexp_name :dregx end |