Class: UserInput
- Inherits:
-
Object
- Object
- UserInput
- Defined in:
- lib/words_and_idioms/user_input.rb
Instance Attribute Summary collapse
-
#user_input ⇒ Object
Returns the value of attribute user_input.
Class Method Summary collapse
Instance Attribute Details
#user_input ⇒ Object
Returns the value of attribute user_input.
3 4 5 |
# File 'lib/words_and_idioms/user_input.rb', line 3 def user_input @user_input end |
Class Method Details
.get_word ⇒ Object
5 6 7 8 |
# File 'lib/words_and_idioms/user_input.rb', line 5 def self.get_word puts "Enter the word you wish to define:" user_input = gets.chomp end |