Class: Date
- 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
66 67 68 |
# File 'lib/xapian_fu/xapian_doc_value_accessor.rb', line 66 def self.from_xapian_fu_storage_value(value) self.parse(value) rescue nil end |
.to_xapian_fu_storage_value(value) ⇒ Object
62 63 64 |
# File 'lib/xapian_fu/xapian_doc_value_accessor.rb', line 62 def self.to_xapian_fu_storage_value(value) value.to_s end |
Instance Method Details
#to_xapian_fu_string ⇒ Object
8 9 10 |
# File 'lib/xapian_fu/xapian_doc.rb', line 8 def to_xapian_fu_string strftime("%Y%m%d") end |