Sha256: 703c426afd801db94db92d70753723796b7888f8d7ec538bb058daea71e914ca
Contents?: true
Size: 366 Bytes
Versions: 14
Compression:
Stored size: 366 Bytes
Contents
module InlineSvg module IOResource def self.===(object) object.is_a?(IO) || object.is_a?(StringIO) end def self.default_for(object) case object when StringIO then '' when IO then 1 end end def self.read(object) start = object.pos str = object.read object.seek start str end end end
Version data entries
14 entries across 14 versions & 2 rubygems