Class: SyntaxTree::YARV::InstructionSequence::CatchEnsure

Inherits:
CatchEntry
  • Object
show all
Defined in:
lib/syntax_tree/yarv/instruction_sequence.rb

Instance Attribute Summary

Attributes inherited from CatchEntry

#begin_label, #end_label, #exit_label, #iseq, #restore_sp

Instance Method Summary collapse

Methods inherited from CatchEntry

#initialize

Constructor Details

This class inherits a constructor from SyntaxTree::YARV::InstructionSequence::CatchEntry

Instance Method Details

#to_aObject



508
509
510
511
512
513
514
515
516
# File 'lib/syntax_tree/yarv/instruction_sequence.rb', line 508

def to_a
  [
    :ensure,
    iseq.to_a,
    begin_label.name,
    end_label.name,
    exit_label.name
  ]
end