Method: HighLine::Style#on
- Defined in:
- lib/highline/style.rb
#on ⇒ Style
Uses the color as background and return a new style.
290 291 292 293 |
# File 'lib/highline/style.rb', line 290 def on new_name = ("on_" + @name.to_s).to_sym self.class.list[new_name] ||= variant(new_name, increment: 10) end |