Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/ext.rb
Instance Method Summary collapse
Instance Method Details
#indent ⇒ Object
12 13 14 |
# File 'lib/ext.rb', line 12 def indent self.split("\n").map { |line| ' ' + line }.join("\n") end |