Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/bbcloud/vendor/hirb-0.3.4/test/test_helper.rb
Instance Method Summary collapse
Instance Method Details
#unindent(num = nil) ⇒ Object
47 48 49 50 |
# File 'lib/bbcloud/vendor/hirb-0.3.4/test/test_helper.rb', line 47 def unindent(num=nil) regex = num ? /^\s{#{num}}/ : /^\s*/ gsub(regex, '').chomp end |