Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/colorls/monkeys.rb
Instance Method Summary collapse
Instance Method Details
#colorize(color) ⇒ Object
2 3 4 |
# File 'lib/colorls/monkeys.rb', line 2 def colorize(color) self.color(color.to_sym) end |
#remove(pattern) ⇒ Object
6 7 8 |
# File 'lib/colorls/monkeys.rb', line 6 def remove(pattern) gsub(pattern, '') end |
#uniq ⇒ Object
10 11 12 |
# File 'lib/colorls/monkeys.rb', line 10 def uniq split('').uniq.join end |