Class: Date

Inherits:
Object show all
Defined in:
lib/xapian_fu/xapian_doc.rb,
lib/xapian_fu/xapian_doc_value_accessor.rb

Overview

:nodoc:

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.from_xapian_fu_storage_value(value) ⇒ Object



61
62
63
# File 'lib/xapian_fu/xapian_doc_value_accessor.rb', line 61

def self.from_xapian_fu_storage_value(value)
  self.parse(value) rescue nil
end

.to_xapian_fu_storage_value(value) ⇒ Object



57
58
59
# File 'lib/xapian_fu/xapian_doc_value_accessor.rb', line 57

def self.to_xapian_fu_storage_value(value)
  value.to_s
end

Instance Method Details

#to_xapian_fu_stringObject



8
9
10
# File 'lib/xapian_fu/xapian_doc.rb', line 8

def to_xapian_fu_string
  strftime("%Y%m%d")
end