Skip to content

Commit

Permalink
Make use of Shale::Utils to apply snake_case
Browse files Browse the repository at this point in the history
  • Loading branch information
kwkwan committed Jun 19, 2024
1 parent acaa124 commit 128ec20
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 14 deletions.
12 changes: 0 additions & 12 deletions lib/lutaml/string.rb

This file was deleted.

1 change: 0 additions & 1 deletion lib/lutaml/xmi.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require "lutaml/xmi/version"
require "lutaml/xmi/parsers/xml"
require_relative "string"

module Lutaml
module XMI
Expand Down
2 changes: 1 addition & 1 deletion lib/lutaml/xmi/parsers/xml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ def doc_node_attribute_value(node_id, attr_name)
doc_node = fetch_element(node_id)
return unless doc_node

doc_node.properties.send(attr_name.snakecase.to_sym)
doc_node.properties.send(Shale::Utils.snake_case(attr_name).to_sym)
end

# @param xmi_id [String]
Expand Down

0 comments on commit 128ec20

Please sign in to comment.