Class: Rewind
- Inherits:
-
Object
- Object
- Rewind
- Defined in:
- lib/rewind.rb
Instance Method Summary collapse
Instance Method Details
#backwards ⇒ Object
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 |