本文簡要介紹ruby語言中 RDoc::Store類
的用法。
單個項目(gem、路徑等)的一組 rdoc 數據。
存儲管理項目的 ri 數據的讀取和寫入,並在存儲中維護方法、類和祖先的緩存。
商店維護其內容的 cache
,以便更快地查找。將項目添加到商店後,必須使用 save_cache
對其進行刷新。緩存包含以下結構:
@cache = {
:ancestors => {}, # class name => ancestor names
:attributes => {}, # class name => attributes
:class_methods => {}, # class name => class methods
:instance_methods => {}, # class name => instance methods
:modules => [], # classes and modules in this store
:pages => [], # page names
}
相關用法
- Ruby Store類用法及代碼示例
- Ruby StopIteration類用法及代碼示例
- Ruby StopIteration.result用法及代碼示例
- Ruby StringScanner skip_until用法及代碼示例
- Ruby StringScanner search_full用法及代碼示例
- Ruby String.match?用法及代碼示例
- Ruby StringScanner.beginning_of_line?用法及代碼示例
- Ruby Stat.stat <=>用法及代碼示例
- Ruby StringScanner restsize用法及代碼示例
- Ruby String delete!用法及代碼示例
- Ruby String chop!用法及代碼示例
- Ruby String.unpack用法及代碼示例
- Ruby Stat.world_writable?用法及代碼示例
- Ruby String each_line用法及代碼示例
- Ruby StringScanner.pos=用法及代碼示例
- Ruby StringScanner check_until用法及代碼示例
- Ruby String getbyte用法及代碼示例
- Ruby Stat.birthtime用法及代碼示例
- Ruby Struct.each用法及代碼示例
- Ruby String gsub用法及代碼示例
- Ruby String.scan用法及代碼示例
- Ruby String.dump用法及代碼示例
- Ruby StringScanner getbyte用法及代碼示例
- Ruby String hash用法及代碼示例
- Ruby String casecmp用法及代碼示例
注:本文由純淨天空篩選整理自ruby-lang.org大神的英文原創作品 Store類。非經特殊聲明,原始代碼版權歸原作者所有,本譯文未經允許或授權,請勿轉載或複製。