Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/ext.rb

Instance Method Summary collapse

Instance Method Details

#indentObject



12
13
14
# File 'lib/ext.rb', line 12

def indent
  self.split("\n").map { |line| '  ' + line }.join("\n")
end