You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: inputs.rb
    path of file: ./repos/foreman/app/services/foreman/renderer/scope/macros
    
    the code of the file until where you have to start completion: module Foreman
  module Renderer
    module Scope
      module Macros
        module Inputs
          include Fo
    
          def input(name)
            input = template.template_inputs&.find_by_name(name)
            if input
              preview? ? input.preview(self) : input.value(self)
            else
              raise UndefinedInput.new(s: name)
            end