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, line 27 def add_bundle(name, info_file) raise "Bundle information already registered for #{name}" if @bundles.has_key?(name) @bundles[name] = info_file load_bundle_information unless @infos.nil? end
bundles()
click to toggle source
Return a hash with information about bundles.
# File lib/webgen/bundle_loader.rb, line 34 def bundles infos[:bundles] end
extensions()
click to toggle source
Return a hash with information about extensions.
# File lib/webgen/bundle_loader.rb, line 39 def extensions infos[:extensions] end
options()
click to toggle source
Return a hash with information about options.
# File lib/webgen/bundle_loader.rb, line 44 def options infos[:options] end