Skip to content

Commit

Permalink
Move the Helpers include to parent class so Phlex::SVG subclasses hav…
Browse files Browse the repository at this point in the history
…e access
  • Loading branch information
davekaro committed Jan 20, 2024
1 parent c88b1bd commit db20ca4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phlex/html.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __unbuffered_class__
end

extend Elements
include Helpers, VoidElements, StandardElements
include VoidElements, StandardElements

# Output an HTML doctype.
def doctype
Expand Down
2 changes: 2 additions & 0 deletions lib/phlex/sgml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
module Phlex
# **Standard Generalized Markup Language** for behaviour common to {HTML} and {SVG}.
class SGML
include Helpers

class << self
# Render the view to a String. Arguments are delegated to {.new}.
def call(...)
Expand Down

0 comments on commit db20ca4

Please sign in to comment.