Class: Estratto::Data::String

Inherits:
Base
  • Object
show all
Defined in:
lib/estratto/data/string.rb

Instance Attribute Summary

Attributes inherited from Base

#data, #formats

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Estratto::Data::Base

Instance Method Details

#coerceObject



7
8
9
10
11
12
13
# File 'lib/estratto/data/string.rb', line 7

def coerce
  if strip_value?
    stripped_data
  else
    data
  end
end