Module: ErubisHelper

Defined in:
lib/helpers/erubis_helper.rb

Class Method Summary collapse

Class Method Details

.spaces(amount = 1) ⇒ Object



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

def self.spaces(amount = 1)
  (0..amount).map { "\s" }.join
end

.tabs(amount = 1) ⇒ Object



3
4
5
# File 'lib/helpers/erubis_helper.rb', line 3

def self.tabs(amount = 1)
  (0..amount).map { "\t" }.join
end