Closed mtyaka closed 6 years ago
The TTFunk::Subset::Unicode#includes?(char) method is trying to invoke #includes(char) on the underlying Set object, but Set does not respond to #includes.
TTFunk::Subset::Unicode#includes?(char)
#includes(char)
Set
#includes
This is most likely just a typo and should be using #include? instead.
#include?
Testing
To reproduce the issue:
require 'ttfunk' require 'ttfunk/subset' font = TTFunk::File.open('myfont.ttf') subset = TTFunk::Subset.for(font, :unicode) subset.includes?(42)
The above fails with NoMethodError: undefined method `includes' for #<Set: {}>.
NoMethodError: undefined method `includes' for #<Set: {}>
Rebased from 1215500bbe1819540fdca8d8f5d08499b2370aec.
The
TTFunk::Subset::Unicode#includes?(char)
method is trying to invoke#includes(char)
on the underlyingSet
object, butSet
does not respond to#includes
.This is most likely just a typo and should be using
#include?
instead.Testing
To reproduce the issue:
The above fails with
NoMethodError: undefined method `includes' for #<Set: {}>
.