lib/infoboxer/parser.rb in infoboxer-0.3.3 vs lib/infoboxer/parser.rb in infoboxer-0.4.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
require 'ostruct'
require 'logger'
module Infoboxer
class Parser
@@ -50,10 +52,10 @@
include Tree
def initialize(context)
@context = context
@re = OpenStruct.new(make_regexps)
- @logger = Logger.new(STDOUT).tap { |l| l.level = Logger::FATAL }
+ @logger = Logger.new($stdout).tap { |l| l.level = Logger::FATAL }
end
require_relative 'parser/inline'
include Parser::Inline