class Lutaml::Model::XmlMapping
def find_by_name(name)
def find_by_name(name) if ["text", "#cdata-section"].include?(name.to_s) content_mapping else mappings.detect do |rule| rule.name == name.to_s || rule.name == name.to_sym end end end
def find_by_name(name) if ["text", "#cdata-section"].include?(name.to_s) content_mapping else mappings.detect do |rule| rule.name == name.to_s || rule.name == name.to_sym end end end