lib/srx/format.rb in srx-0.1.0 vs lib/srx/format.rb in srx-0.2.0
- old
+ new
@@ -1,17 +1,18 @@
# frozen_string_literal: true
require_relative 'format/base_format'
require_relative 'format/text'
require_relative 'format/xml'
+require_relative 'format/html'
module Srx
# Format-specific data and logic
module Format
FORMATS = {
text: Text.new,
xml: Xml.new,
- html: Xml.new # TODO: specialize for HTML
+ html: Html.new
}.freeze
class << self
# @param format [Symbol]
# @return [BaseFormat]