Sha256: 5d106df82df4278d49f8fc6596f99920b99605b1633f61e8a974d30f18190c40

Contents?: true

Size: 212 Bytes

Versions: 17

Compression:

Stored size: 212 Bytes

Contents

module Lono::Configset::Strategy::Helpers
  module Erb
    def indent(text, indentation_amount)
      text.split("\n").map do |line|
        " " * indentation_amount + line
      end.join("\n")
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
lono-8.0.0.pre.rc2 lib/lono/configset/strategy/helpers/erb.rb
lono-8.0.0.pre.rc1 lib/lono/configset/strategy/helpers/erb.rb
lono-7.5.2 lib/lono/configset/strategy/helpers/erb.rb
lono-7.5.1 lib/lono/configset/strategy/helpers/erb.rb
lono-7.5.0 lib/lono/configset/strategy/helpers/erb.rb
lono-7.4.11 lib/lono/configset/strategy/helpers/erb.rb
lono-7.4.10 lib/lono/configset/strategy/helpers/erb.rb
lono-7.4.9 lib/lono/configset/strategy/helpers/erb.rb
lono-7.4.8 lib/lono/configset/strategy/helpers/erb.rb
lono-7.4.7 lib/lono/configset/strategy/helpers/erb.rb
lono-7.4.6 lib/lono/configset/strategy/helpers/erb.rb
lono-7.4.5 lib/lono/configset/strategy/helpers/erb.rb
lono-7.4.4 lib/lono/configset/strategy/helpers/erb.rb
lono-7.4.3 lib/lono/configset/strategy/helpers/erb.rb
lono-7.4.2 lib/lono/configset/strategy/helpers/erb.rb
lono-7.4.1 lib/lono/configset/strategy/helpers/erb.rb
lono-7.4.0 lib/lono/configset/strategy/helpers/erb.rb