Class: String

Inherits:
Object show all
Defined in:
lib/gviz/system_extension.rb

Instance Method Summary collapse

Instance Method Details

#~Object



33
34
35
36
# File 'lib/gviz/system_extension.rb', line 33

def ~
  margin = scan(/^ +/).map(&:size).min
  gsub(/^ {#{margin}}/, '')
end