class SyntaxTree::YARV::ToRegExp


~~~
/foo #{bar}/
~~~ruby
### Usage
regular expression, and pushes the new regular expression onto the stack.
‘toregexp` pops a number of values off the stack, combines them into a new
### Summary

def ==(other)

def ==(other)
  other.is_a?(ToRegExp) && other.options == options &&
    other.length == length
end

def call(vm)

def call(vm)
  vm.push(Regexp.new(vm.pop(length).join, options))
end

def deconstruct_keys(_keys)

def deconstruct_keys(_keys)
  { options: options, length: length }
end

def disasm(fmt)

def disasm(fmt)
  fmt.instruction("toregexp", [fmt.object(options), fmt.object(length)])
end

def initialize(options, length)

def initialize(options, length)
  @options = options
  @length = length
end

def pops

def pops
  length
end

def pushes

def pushes
  1
end

def to_a(_iseq)

def to_a(_iseq)
  [:toregexp, options, length]
end