Module: Starburstroma

Defined in:
lib/starburstroma.rb

Instance Method Summary collapse

Instance Method Details

#cleaned_up(text) ⇒ Object



7
8
9
10
11
# File 'lib/starburstroma.rb', line 7

def cleaned_up text
 return text if( text.nil? || text.strip == '' )
 tokens = text.scan(/[a-z.,'-]+/i)
 new_text = tokens.map{ |t| t.capitalize }.join(' ')
end

#greetingsObject



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

def greetings
 'hello'
end