lib/feedjira.rb in feedjira-3.2.0 vs lib/feedjira.rb in feedjira-3.2.1

- old
+ new

@@ -63,11 +63,11 @@ raise NoParserAvailable, "No valid parser for XML." end parser.parse(xml, &block) end - module_function :parse # rubocop:disable Style/AccessModifierDeclarations + module_function :parse # Find compatible parser for given XML # # @example # xml = HTTParty.get("http://example.com").body @@ -75,7 +75,7 @@ # parser.parse(xml) def parser_for_xml(xml) start_of_doc = xml.slice(0, 2000) Feedjira.parsers.detect { |klass| klass.able_to_parse?(start_of_doc) } end - module_function :parser_for_xml # rubocop:disable Style/AccessModifierDeclarations + module_function :parser_for_xml end