Class: Rewind

Inherits:
Object
  • Object
show all
Defined in:
lib/rewind.rb

Instance Method Summary collapse

Instance Method Details

#backwardsObject



2
3
4
5
6
7
# File 'lib/rewind.rb', line 2

def backwards
  puts "Please enter a word"
  term = gets
  newterm = term.reverse
  puts "This is your word backwards:" + newterm
end