Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/hanzo.rb
Instance Method Summary collapse
Instance Method Details
#unindent ⇒ Object
70 71 72 |
# File 'lib/hanzo.rb', line 70 def unindent gsub(/^#{scan(/^\s*/).min_by { |l| l.length }}/, '') end |