Sha256: c0236eb4dba87e14d25b4598e96779fe9fdcb976b9d900f2a465ce31dd98a898

Contents?: true

Size: 327 Bytes

Versions: 7

Compression:

Stored size: 327 Bytes

Contents

# frozen_striing_literal: true

module Stepmod
  module Utils
    module Parsers
      module Types
        class StringWithoutIndent < Shale::Type::Value
          def self.cast(value)
            return unless value

            value.split("\n").map(&:strip).join("\n")
          end
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
stepmod-utils-0.6.6 lib/stepmod/utils/parsers/types/string_without_indent.rb
stepmod-utils-0.6.5 lib/stepmod/utils/parsers/types/string_without_indent.rb
stepmod-utils-0.6.3 lib/stepmod/utils/parsers/types/string_without_indent.rb
stepmod-utils-0.6.2 lib/stepmod/utils/parsers/types/string_without_indent.rb
stepmod-utils-0.6.1 lib/stepmod/utils/parsers/types/string_without_indent.rb
stepmod-utils-0.6.0 lib/stepmod/utils/parsers/types/string_without_indent.rb
stepmod-utils-0.5.0 lib/stepmod/utils/parsers/types/string_without_indent.rb