Class: Shipit::OutputChunk

Inherits:
Record
  • Object
show all
Defined in:
app/models/shipit/output_chunk.rb

Instance Method Summary collapse

Methods inherited from Record

serializer_class

Instance Method Details

#text=(string) ⇒ Object



9
10
11
12
13
14
15
# File 'app/models/shipit/output_chunk.rb', line 9

def text=(string)
  if string.frozen?
    super(string)
  else
    super(string.force_encoding(Encoding::UTF_8).scrub)
  end
end