Class: DTRToRust::Instruction::LogString
- Defined in:
- lib/instruction/log_string.rb
Overview
This class is responsible for generating Rust code for the LogString 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
#handle ⇒ Object
7 8 9 |
# File 'lib/instruction/log_string.rb', line 7 def handle form_rust_string("log!(#{inputs_to_rust_string(@instruction[:inputs])});", @instruction[:scope]) end |