lib/gloo/app/platform.rb in gloo-1.2.9 vs lib/gloo/app/platform.rb in gloo-1.2.10

- old
+ new

@@ -72,9 +72,21 @@ TTY::Editor.open( tmp ) return File.read( tmp ) end # --------------------------------------------------------------------- + # Color helper + # --------------------------------------------------------------------- + + # + # Get colorized string. + # + def getColorizedString( str, color ) + colorized = ColorizedString[ str.to_s ].colorize( color ) + return colorized.to_s + end + + # --------------------------------------------------------------------- # Table helper # --------------------------------------------------------------------- # # Show the given table data.