Class: Spellr::StringIOWithEncoding
- Inherits:
-
StringIO
- Object
- StringIO
- Spellr::StringIOWithEncoding
- Defined in:
- lib/spellr/stringio_with_encoding.rb
Instance Method Summary collapse
Instance Method Details
#each_line(*args, encoding: nil, **kwargs, &block) ⇒ Object
5 6 7 8 9 |
# File 'lib/spellr/stringio_with_encoding.rb', line 5 def each_line(*args, encoding: nil, **kwargs, &block) string.force_encoding(encoding) if encoding && !string.frozen? super(*args, **kwargs, &block) end |