MCPcopy Create free account
hub / github.com/KLayout/klayout / to_s

Method to_s

scripts/mkqtdecl_common/cpp_classes.rb:93–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91 def_initializer :inner, :args, :cv, :ref
92
93 def to_s
94 a = self.args
95 a ||= []
96 if !a.is_a?(Array)
97 a = [a]
98 end
99 self.inner.to_s + " (" + a.join(", ") + ")" + (self.cv ? " " + self.cv.to_s : "") + (self.ref ? " " + self.ref.to_s : "")
100 end
101
102 def dump(i)
103 i + "CPPFunc\n" + i + " inner:\n" + self.inner.dump(i + " ") + "\n" +

Callers

nothing calls this directly

Calls 3

refMethod · 0.80
to_sMethod · 0.45
joinMethod · 0.45

Tested by

no test coverage detected