Class: DTRToRust::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

#form_rust_string, handle, #initialize, #spacing

Constructor Details

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

Instance Method Details

#handleObject



7
8
9
# File 'lib/instruction/return.rb', line 7

def handle
  form_rust_string(@instruction[:inputs][0], @instruction[:scope])
end