Module: Colorize::Extended::StringExtensions

Included in:
String
Defined in:
lib/colorize/extended/string_extensions.rb

Overview

Adds the #on method to String and ColorizedString, enabling the chained syntax: “hello”.red.on.blue

Instance Method Summary collapse

Instance Method Details

#onObject



10
11
12
# File 'lib/colorize/extended/string_extensions.rb', line 10

def on
  Colorize::Extended::BackgroundProxy.new(self)
end