Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/arver/string.rb
Instance Method Summary collapse
-
#indent_once ⇒ Object
Returns an indented string, all lines of string will be indented with count of chars.
Instance Method Details
#indent_once ⇒ Object
Returns an indented string, all lines of string will be indented with count of chars
4 5 6 |
# File 'lib/arver/string.rb', line 4 def indent_once (" ") + gsub(/(\n+)/) { $1 + (" ") } end |