class Object
Public Instance Methods
stringify(value)
click to toggle source
# File lib/utils/value_stringifier.rb, line 1 def stringify(value) if value.nil? || value == true || value == 'true' 't' elsif value == false || value == 'false' 'f' else value end end
unstringify(value)
click to toggle source
# File lib/utils/value_stringifier.rb, line 11 def unstringify(value) if value == 't' || value == 'true' true elsif value == 'f' || value == 'false' || value == nil false else value end end