Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/traveler/core_ext.rb
Instance Method Summary collapse
Instance Method Details
#unindent ⇒ Object
2 3 4 |
# File 'lib/traveler/core_ext.rb', line 2 def unindent gsub(/^#{scan(/\A\s*/m).min_by(&:length)}/, "") end |