class XapianDb::TypeCodec::BooleanCodec
Public Class Methods
Source
# File lib/type_codec.rb 83 def self.decode(string) 84 string == "true" 85 end
Decode a string representing a boolean @param [String] string a string @return [Boolean] the boolean value
Source
# File lib/type_codec.rb 76 def self.encode(value) 77 value.to_s 78 end
Encode a boolean value to a string @param [Object] value a value to encode @return [String] the string