Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/hodor.rb
Instance Method Summary collapse
Instance Method Details
#unindent(count) ⇒ Object
75 76 77 78 |
# File 'lib/hodor.rb', line 75 def unindent(count) #gsub(/^#{scan(/^\s*/).min_by{|l|l.length}}/, "") gsub(/^[ \t]{1,#{count}}/, "") end |