class Ikra::Translator::CommandTranslator::CommandTranslationResult
Attributes
command[R]
execution[R]
Source code that performs the computation of this command for one thread. May consist of multiple statement. Optional.
result[R]
Source code that returns the result of the computation. If the computation can be expressed in a single expression, this string can contain the entire computation and `execution` should then be empty.
Public Class Methods
new(execution: "", result:, command:)
click to toggle source
# File lib/translator/commands/command_translator.rb, line 31 def initialize(execution: "", result:, command:) @execution = execution @command = command @result = result; end
Public Instance Methods
result_type()
click to toggle source
# File lib/translator/commands/command_translator.rb, line 37 def result_type return command.result_type end