Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/hiro_format/coloring.rb,
lib/hiro_format/formatting.rb
Instance Method Summary collapse
Instance Method Details
#color(color_scheme) ⇒ Object
101 102 103 |
# File 'lib/hiro_format/coloring.rb', line 101 def color(color_scheme) AnsiColoring.new(self, color_scheme) end |
#commify ⇒ Object
255 256 257 |
# File 'lib/hiro_format/formatting.rb', line 255 def commify self.gsub(/(\d)(?=\d{3}+$)/, '\\1,') end |
#formatting(option = nil) ⇒ Object
251 252 253 |
# File 'lib/hiro_format/formatting.rb', line 251 def formatting(option=nil) Formatting.new(self, option) end |