Module: Faml::Helpers

Defined in:
lib/faml/helpers.rb

Overview

Don’t use these methods!

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.preserve(input) ⇒ Object



6
7
8
9
# File 'lib/faml/helpers.rb', line 6

def self.preserve(input)
  # Taken from the original haml code
  input.to_s.chomp("\n").gsub(/\n/, '
').delete("\r")
end

Instance Method Details

#preserve(input) ⇒ Object



11
12
13
# File 'lib/faml/helpers.rb', line 11

def preserve(input)
  Helpers.preserve(input)
end