module Lutaml::Model
def to_tree
-
(String)
- A string representation of the object's attribute tree
def to_tree output = "#{self.class}\n" self.class.attributes.each_with_index do |(name, type), index| value = send(name) is_last = index == self.class.attributes.length - 1 context = DiffContext.new(nil, nil, show_unchanged: false) formatted = context.format_value(value) output << context.tree_line(is_last, "#{name} (#{type}): #{formatted}") end output end