lib/srx/format.rb in srx-0.2.0 vs lib/srx/format.rb in srx-0.3.0
- old
+ new
@@ -13,10 +13,10 @@
xml: Xml.new,
html: Html.new
}.freeze
class << self
- # @param format [Symbol]
+ # @param format [Symbol] see keys of {FORMATS} for accepted values
# @return [BaseFormat]
def get(format)
raise(ArgumentError, "Unknown format: #{format}") unless FORMATS.key?(format)
FORMATS[format]