Method: ChupaText::Screenshot#encoding
- Defined in:
- lib/chupa-text/screenshot.rb
#encoding ⇒ String? (readonly)
Returns The encoding of the screenshot data.
nil means that the data is raw data. It's used for SVG data
because it's text data. "base64" means that the data is encoded
by Base64. It's used for PNG data because it's binary data.
29 30 31 |
# File 'lib/chupa-text/screenshot.rb', line 29 def encoding @encoding end |