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



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

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

Instance Method Details

#preserve(input) ⇒ Object



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

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