Method: Aws::SdbInterface#ruby_to_sdb
- Defined in:
- lib/sdb/sdb_interface.rb
#ruby_to_sdb(value) ⇒ Object
Convert a Ruby language value to a SDB value by replacing Ruby nil with the user’s chosen string representation of nil. Non-nil values are unaffected by this filter.
151 152 153 154 155 |
# File 'lib/sdb/sdb_interface.rb', line 151 def ruby_to_sdb(value) # puts "value #{value} is frozen? #{value.frozen?}" # value.nil? ? @nil_rep : ((value.frozen? || !value.is_a?(String)) ? value : value.force_encoding("UTF-8")) value.nil? ? @nil_rep : value end |