lib/phlex/svg.rb in phlex-1.11.0 vs lib/phlex/svg.rb in phlex-2.0.0.beta1
- old
+ new
@@ -1,20 +1,18 @@
# frozen_string_literal: true
-module Phlex
- class SVG < SGML
- autoload :StandardElements, "phlex/svg/standard_elements"
+class Phlex::SVG < Phlex::SGML
+ autoload :StandardElements, "phlex/svg/standard_elements"
- include StandardElements
+ include StandardElements
- # This should be extended after all method definitions
- extend ElementClobberingGuard
+ # This should be extended after all method definitions
+ extend Phlex::ElementClobberingGuard
- def content_type
- "image/svg+xml"
- end
+ def content_type
+ "image/svg+xml"
+ end
- def filename
- nil
- end
+ def filename
+ nil
end
end