Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/ruby_test.rb
Instance Method Summary collapse
Instance Method Details
#color_mode(color) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/ruby_test.rb', line 11 def color_mode(color) if $color_mode case color when :ok return self.blue when :fail return self.red when :normal return self.green end else self end end |