Method: LhStringThing.spacify

Defined in:
lib/lh_string_thing.rb

.spacify(str, spaces = 0) ⇒ Object



18
19
20
21
22
23
24
# File 'lib/lh_string_thing.rb', line 18

def self.spacify(str, spaces = 0)
  new_string = str
  spaces.times do 
    new_string = new_string.split('').join(' ')
  end
  new_string
end