Skip to content

Commit

Permalink
Fix symbol conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldrapper committed Sep 10, 2024
1 parent 5b30b01 commit 5a866fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/phlex/sgml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ def __classes__(c)
when String
c
when Symbol
c.name
c.name.tr("_", "-")
when Array, Set
c.filter_map { |c| __classes__(c) }.join(" ")
when Hash
Expand Down Expand Up @@ -603,7 +603,7 @@ def __styles__(s)
when String
s
when Symbol
s.name
s.name.tr("_", "-")
when Integer, Float
s.to_s
when Array, Set
Expand Down

0 comments on commit 5a866fc

Please sign in to comment.