Module: Lono::Configset::Strategy::Helpers::Erb
- Included in:
- Erb
- Defined in:
- lib/lono/configset/strategy/helpers/erb.rb
Instance Method Summary collapse
Instance Method Details
#indent(text, indentation_amount) ⇒ Object
3 4 5 6 7 |
# File 'lib/lono/configset/strategy/helpers/erb.rb', line 3 def indent(text, indentation_amount) text.split("\n").map do |line| " " * indentation_amount + line end.join("\n") end |