Class: ColoredScripts
- Inherits:
-
Object
- Object
- ColoredScripts
- Defined in:
- lib/colored_scripts.rb,
lib/colored_scripts/version.rb
Constant Summary collapse
- VERSION =
"0.0.3"
Class Method Summary collapse
Class Method Details
.method_missing(method, *args, &blk) ⇒ Object
41 42 43 44 45 46 47 48 |
# File 'lib/colored_scripts.rb', line 41 def self.method_missing(method, *args, &blk) if @@colors.has_key? method and args.count == 1 text_to_print = args[0] gen_string(text_to_print, @@colors[method]) else super end end |