Class: UserInput

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#user_inputObject

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_wordObject



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