2010-04-01 03:45:16 -04:00
|
|
|
##
|
|
|
|
# Generates ri data files
|
2003-12-16 00:44:25 -05:00
|
|
|
|
2008-01-12 22:13:37 -05:00
|
|
|
class RDoc::Generator::RI
|
2003-12-16 00:44:25 -05:00
|
|
|
|
2010-04-01 03:45:16 -04:00
|
|
|
RDoc::RDoc.add_generator self
|
2003-12-16 00:44:25 -05:00
|
|
|
|
2010-12-28 17:08:56 -05:00
|
|
|
##
|
|
|
|
# Description of this generator
|
|
|
|
|
|
|
|
DESCRIPTION = 'creates ri data files'
|
|
|
|
|
2008-01-06 20:36:33 -05:00
|
|
|
##
|
2008-07-21 14:35:14 -04:00
|
|
|
# Set up a new ri generator
|
2003-12-16 00:44:25 -05:00
|
|
|
|
2012-11-26 23:28:14 -05:00
|
|
|
def initialize store, options #:not-new:
|
|
|
|
@options = options
|
|
|
|
@store = store
|
|
|
|
@store.path = '.'
|
2008-01-06 20:36:33 -05:00
|
|
|
end
|
2003-12-16 00:44:25 -05:00
|
|
|
|
2008-01-06 20:36:33 -05:00
|
|
|
##
|
2012-11-26 23:28:14 -05:00
|
|
|
# Writes the parsed data store to disk for use by ri.
|
2008-01-06 21:52:15 -05:00
|
|
|
|
2012-11-26 23:28:14 -05:00
|
|
|
def generate
|
|
|
|
@store.save
|
2003-12-16 00:44:25 -05:00
|
|
|
end
|
2008-01-06 19:42:03 -05:00
|
|
|
|
2003-12-16 00:44:25 -05:00
|
|
|
end
|
2008-01-06 19:42:03 -05:00
|
|
|
|