Class: Stepmod::Utils::Parsers::Types::StringWithoutIndent

Inherits:
Shale::Type::Value
  • Object
show all
Defined in:
lib/stepmod/utils/parsers/types/string_without_indent.rb

Class Method Summary collapse

Class Method Details

.cast(value) ⇒ Object



8
9
10
11
12
# File 'lib/stepmod/utils/parsers/types/string_without_indent.rb', line 8

def self.cast(value)
  return unless value

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