Class: SorobanRustBackend::Instruction::Return

Inherits:
Handler
  • Object
show all
Defined in:
lib/instruction/return.rb

Overview

This class is responsible for generating Rust code for the Return instruction.

Instance Method Summary collapse

Methods inherited from Handler

#format_assign, handle, #initialize

Constructor Details

This class inherits a constructor from SorobanRustBackend::Instruction::Handler

Instance Method Details

#handleObject



5
6
7
# File 'lib/instruction/return.rb', line 5

def handle
  "return #{@instruction.inputs[0]};"
end