The Gaudi Framework  master (37c0b60a)
GaudiTesting.utils.CodeWrapper Class Reference

Public Member Functions

None __init__ (self, code, language)
 
str __str__ (self)
 

Public Attributes

 code
 
 language
 

Detailed Description

Definition at line 22 of file utils.py.

Constructor & Destructor Documentation

◆ __init__()

None GaudiTesting.utils.CodeWrapper.__init__ (   self,
  code,
  language 
)

Definition at line 23 of file utils.py.

23  def __init__(self, code, language) -> None:
24  self.code = code
25  self.language = language
26 

Member Function Documentation

◆ __str__()

str GaudiTesting.utils.CodeWrapper.__str__ (   self)

Definition at line 27 of file utils.py.

27  def __str__(self) -> str:
28  return f'<pre><code class="language-{self.language}">{XSS.escape(self.code)}</code></pre>'
29 
30 

Member Data Documentation

◆ code

GaudiTesting.utils.CodeWrapper.code

Definition at line 24 of file utils.py.

◆ language

GaudiTesting.utils.CodeWrapper.language

Definition at line 25 of file utils.py.


The documentation for this class was generated from the following file:
GaudiPartProp.decorators.__str__
__str__
decorate the printout for Gaudi::ParticleProperty
Definition: decorators.py:176