Class: Skeevy::Filters::ForceUtf8Encoding

Inherits:
Object
  • Object
show all
Includes:
Skeevy::Filter
Defined in:
lib/skeevy/filters/force_utf8_encoding.rb

Instance Method Summary collapse

Instance Method Details

#filter_read(content:) ⇒ Object



6
7
8
9
10
# File 'lib/skeevy/filters/force_utf8_encoding.rb', line 6

def filter_read(content:)
  if content
    content.force_encoding("utf-8")
  end
end

#filter_write(content:) ⇒ Object



12
13
14
# File 'lib/skeevy/filters/force_utf8_encoding.rb', line 12

def filter_write(content:)
  content
end