Bug: Syntax error in Resources#empty? method
lib/pdfrb/model/type/resources.rb:61 has a syntax error that prevents the file from loading:
# Current (broken):
value[k].nil? || (value[k].is_a?(String) || .is_a?(Array) && value[k].empty?)
The .is_a? has no receiver before the dot. Should be:
# Fixed:
value[k].nil? || (value[k].is_a?(Array) && value[k].empty?)
Impact
Any code that triggers the Resources type autoload crashes with SyntaxError. This affects every Pdfrb::Document.new call when the type is eagerly loaded.
Bug: Syntax error in Resources#empty? method
lib/pdfrb/model/type/resources.rb:61has a syntax error that prevents the file from loading:The
.is_a?has no receiver before the dot. Should be:Impact
Any code that triggers the
Resourcestype autoload crashes withSyntaxError. This affects everyPdfrb::Document.newcall when the type is eagerly loaded.