class Webgen::BundleLoader::BundleInformation
Exposes information about bundles like author, license, bundle homepage as well as extension and configuration option documentation.
Public Instance Methods
add_bundle(name, info_file)
click to toggle source
Add the bundle name
with the given information file to the list of available bundles.
# File lib/webgen/bundle_loader.rb 27 def add_bundle(name, info_file) 28 raise "Bundle information already registered for #{name}" if @bundles.has_key?(name) 29 @bundles[name] = info_file 30 load_bundle_information unless @infos.nil? 31 end
bundles()
click to toggle source
Return a hash with information about bundles.
# File lib/webgen/bundle_loader.rb 34 def bundles 35 infos[:bundles] 36 end
extensions()
click to toggle source
Return a hash with information about extensions.
# File lib/webgen/bundle_loader.rb 39 def extensions 40 infos[:extensions] 41 end
options()
click to toggle source
Return a hash with information about options.
# File lib/webgen/bundle_loader.rb 44 def options 45 infos[:options] 46 end