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
Modules
- Lutaml::Model::ComparableModel
- Lutaml::Model::Config
- Lutaml::Model::Constants
- Lutaml::Model::HashAdapter
- Lutaml::Model::Json
- Lutaml::Model::JsonAdapter
- Lutaml::Model::Liquefiable
- Lutaml::Model::Schema
- Lutaml::Model::Serialize
- Lutaml::Model::Toml
- Lutaml::Model::Type
- Lutaml::Model::Utils
- Lutaml::Model::Validation
- Lutaml::Model::Xml
- Lutaml::Model::XmlAdapter
- Lutaml::Model::Yaml
Classes
- Lutaml::Model::Attribute
- Lutaml::Model::BaseModel
- Lutaml::Model::Choice
- Lutaml::Model::ChoiceLowerBoundError
- Lutaml::Model::ChoiceUpperBoundError
- Lutaml::Model::Cli
- Lutaml::Model::CollectionCountOutOfRangeError
- Lutaml::Model::CollectionTrueMissingError
- Lutaml::Model::ComparableNil
- Lutaml::Model::Comparison
- Lutaml::Model::Error
- Lutaml::Model::ExportTransformer
- Lutaml::Model::FormatRegistry
- Lutaml::Model::ImportModelWithRootError
- Lutaml::Model::ImportTransformer
- Lutaml::Model::IncorrectMappingArgumentsError
- Lutaml::Model::IncorrectModelError
- Lutaml::Model::IncorrectSequenceError
- Lutaml::Model::InvalidChoiceRangeError
- Lutaml::Model::InvalidValueError
- Lutaml::Model::KeyValueDocument
- Lutaml::Model::KeyValueMapping
- Lutaml::Model::KeyValueMappingRule
- Lutaml::Model::KeyValueTransform
- Lutaml::Model::LiquidNotEnabledError
- Lutaml::Model::Location
- Lutaml::Model::Logger
- Lutaml::Model::Mapping
- Lutaml::Model::MappingHash
- Lutaml::Model::MappingRule
- Lutaml::Model::MultipleMappingsError
- Lutaml::Model::NoRootMappingError
- Lutaml::Model::NoRootNamespaceError
- Lutaml::Model::PatternNotMatchedError
- Lutaml::Model::PolymorphicError
- Lutaml::Model::SchemaLocation
- Lutaml::Model::Sequence
- Lutaml::Model::Serializable
- Lutaml::Model::SerializationAdapter
- Lutaml::Model::Transform
- Lutaml::Model::Transformer
- Lutaml::Model::TypeError
- Lutaml::Model::TypeNotEnabledError
- Lutaml::Model::UninitializedClass
- Lutaml::Model::UnknownAdapterTypeError
- Lutaml::Model::UnknownSequenceMappingError
- Lutaml::Model::UnknownTypeError
- Lutaml::Model::ValidationError
- Lutaml::Model::XmlTransform
Instance Methods
Defined in
- lib/lutaml/model.rb
- lib/lutaml/model/attribute.rb
- lib/lutaml/model/choice.rb
- lib/lutaml/model/cli.rb
- lib/lutaml/model/comparable_model.rb
- lib/lutaml/model/comparable_nil.rb
- lib/lutaml/model/comparison.rb
- lib/lutaml/model/config.rb
- lib/lutaml/model/constants.rb
- lib/lutaml/model/error.rb
- lib/lutaml/model/error/choice_lower_bound_error.rb
- lib/lutaml/model/error/choice_upper_bound_error.rb
- lib/lutaml/model/error/collection_count_out_of_range_error.rb
- lib/lutaml/model/error/collection_true_missing_error.rb
- lib/lutaml/model/error/import_model_with_root_error.rb
- lib/lutaml/model/error/incorrect_mapping_argument_error.rb
- lib/lutaml/model/error/incorrect_sequence_error.rb
- lib/lutaml/model/error/invalid_choice_range_error.rb
- lib/lutaml/model/error/invalid_value_error.rb
- lib/lutaml/model/error/liquid_not_enabled_error.rb
- lib/lutaml/model/error/multiple_mappings_error.rb
- lib/lutaml/model/error/no_root_mapping_error.rb
- lib/lutaml/model/error/no_root_namespace_error.rb
- lib/lutaml/model/error/pattern_not_matched_error.rb
- lib/lutaml/model/error/polymorphic_error.rb
- lib/lutaml/model/error/type/invalid_value_error.rb
- lib/lutaml/model/error/type_error.rb
- lib/lutaml/model/error/type_not_enabled_error.rb
- lib/lutaml/model/error/unknown_adapter_type_error.rb
- lib/lutaml/model/error/unknown_sequence_mapping_error.rb
- lib/lutaml/model/error/unknown_type_error.rb
- lib/lutaml/model/error/validation_error.rb
- lib/lutaml/model/format_registry.rb
- lib/lutaml/model/hash.rb
- lib/lutaml/model/hash/document.rb
- lib/lutaml/model/hash/mapping.rb
- lib/lutaml/model/hash/mapping_rule.rb
- lib/lutaml/model/hash/standard_adapter.rb
- lib/lutaml/model/hash/transform.rb
- lib/lutaml/model/json.rb
- lib/lutaml/model/json/document.rb
- lib/lutaml/model/json/mapping.rb
- lib/lutaml/model/json/mapping_rule.rb
- lib/lutaml/model/json/multi_json_adapter.rb
- lib/lutaml/model/json/standard_adapter.rb
- lib/lutaml/model/json/transform.rb
- lib/lutaml/model/json_adapter.rb
- lib/lutaml/model/key_value_document.rb
- lib/lutaml/model/liquefiable.rb
- lib/lutaml/model/mapping/key_value_mapping.rb
- lib/lutaml/model/mapping/key_value_mapping_rule.rb
- lib/lutaml/model/mapping/mapping.rb
- lib/lutaml/model/mapping/mapping_rule.rb
- lib/lutaml/model/mapping_hash.rb
- lib/lutaml/model/schema.rb
- lib/lutaml/model/schema/json_schema.rb
- lib/lutaml/model/schema/json_schema_parser.rb
- lib/lutaml/model/schema/relaxng_schema.rb
- lib/lutaml/model/schema/templates/simple_type.rb
- lib/lutaml/model/schema/xml_compiler.rb
- lib/lutaml/model/schema/xsd_schema.rb
- lib/lutaml/model/schema/yaml_schema.rb
- lib/lutaml/model/schema_location.rb
- lib/lutaml/model/sequence.rb
- lib/lutaml/model/serializable.rb
- lib/lutaml/model/serialization_adapter.rb
- lib/lutaml/model/serialize.rb
- lib/lutaml/model/services/logger.rb
- lib/lutaml/model/services/transformer.rb
- lib/lutaml/model/toml.rb
- lib/lutaml/model/toml/document.rb
- lib/lutaml/model/toml/mapping.rb
- lib/lutaml/model/toml/mapping_rule.rb
- lib/lutaml/model/toml/toml_rb_adapter.rb
- lib/lutaml/model/toml/tomlib_adapter.rb
- lib/lutaml/model/toml/transform.rb
- lib/lutaml/model/transform.rb
- lib/lutaml/model/transform/key_value_transform.rb
- lib/lutaml/model/transform/xml_transform.rb
- lib/lutaml/model/type.rb
- lib/lutaml/model/type/boolean.rb
- lib/lutaml/model/type/date.rb
- lib/lutaml/model/type/date_time.rb
- lib/lutaml/model/type/decimal.rb
- lib/lutaml/model/type/float.rb
- lib/lutaml/model/type/hash.rb
- lib/lutaml/model/type/integer.rb
- lib/lutaml/model/type/string.rb
- lib/lutaml/model/type/time.rb
- lib/lutaml/model/type/time_without_date.rb
- lib/lutaml/model/type/value.rb
- lib/lutaml/model/uninitialized_class.rb
- lib/lutaml/model/utils.rb
- lib/lutaml/model/validation.rb
- lib/lutaml/model/version.rb
- lib/lutaml/model/xml.rb
- lib/lutaml/model/xml/builder/nokogiri.rb
- lib/lutaml/model/xml/builder/oga.rb
- lib/lutaml/model/xml/builder/ox.rb
- lib/lutaml/model/xml/document.rb
- lib/lutaml/model/xml/element.rb
- lib/lutaml/model/xml/mapping.rb
- lib/lutaml/model/xml/mapping_rule.rb
- lib/lutaml/model/xml/nokogiri_adapter.rb
- lib/lutaml/model/xml/oga/document.rb
- lib/lutaml/model/xml/oga/element.rb
- lib/lutaml/model/xml/oga_adapter.rb
- lib/lutaml/model/xml/ox_adapter.rb
- lib/lutaml/model/xml/transform.rb
- lib/lutaml/model/xml/xml_attribute.rb
- lib/lutaml/model/xml/xml_element.rb
- lib/lutaml/model/xml/xml_namespace.rb
- lib/lutaml/model/xml_adapter.rb
- lib/lutaml/model/xml_adapter/element.rb
- lib/lutaml/model/xml_adapter/nokogiri_adapter.rb
- lib/lutaml/model/xml_adapter/oga_adapter.rb
- lib/lutaml/model/xml_adapter/ox_adapter.rb
- lib/lutaml/model/yaml.rb
- lib/lutaml/model/yaml/document.rb
- lib/lutaml/model/yaml/mapping.rb
- lib/lutaml/model/yaml/mapping_rule.rb
- lib/lutaml/model/yaml/standard_adapter.rb
- lib/lutaml/model/yaml/transform.rb