Class Webgen::Color
In: lib/webgen/cli.rb
Parent: Object
RuntimeError PluginParamNotFound PluginNotFound ConfigurationFileInvalid CmdParse::CommandParser CommandParser DirectoryInfo GalleryStyle WebSiteStyle WebSiteTemplate SipttraStyle Test::Unit::TestCase TestCase PluginTestCase TagTestCase CmdParse::Command ShowCommand CheckCommand UseCommand CreateCommand TSort DependencyHash Hash Comparable Language DEFAULT_WRAPPER_MODULE WebSite ::Logger Logger Logger Qt::MainWindow MainWindow Qt::Dialog NewWebsiteDialog Qt::TextEdit LogWidget ::Rake::TaskLib WebgenTask ConfigurationFile Website PluginManager PluginLoader PluginParamValueNotFound Dummy Color CliUtils PluginDefs lib/webgen/languages.rb lib/webgen/website.rb lib/webgen/gui/common.rb lib/webgen/plugin.rb lib/webgen/test.rb lib/webgen/cli.rb ClassMethods PluginDefs LanguageManager lib/webgen/gui/new_website_dlg.rb lib/webgen/gui/main.rb GUI lib/webgen/rake/webgentask.rb Rake Webgen dot/m_60_0.png

Methods

Public Class methods

[Source]

    # File lib/webgen/cli.rb, line 34
34:     def self.colorify
35:       @@colors.each do |color, values|
36:         module_eval "def Color.\#{color.to_s}( text = nil )\n\"\\e[\#{values[0]};\#{values[1]}m\" + (text.nil? ? '' : text + self.reset)\nend\n"
37:       end
38:     end

[Source]

    # File lib/webgen/cli.rb, line 45
45:     def self.method_missing( id, text = nil )
46:       text.to_s
47:     end

[Validate]