Module: HackerToDo
- Defined in:
- lib/hacker_todo_list/core_methods.rb,
lib/hacker_todo_list.rb,
lib/hacker_todo_list/setup.rb
Overview
Hacker ToDo Class Methods
Defined Under Namespace
Constant Summary collapse
- GIST_FILE_NAME =
"hacker_todo"
- GIST_DESCRIPTION =
"Hacker To Do"
Class Method Summary collapse
Class Method Details
.get_from_console(console_string, hide_input = false) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/hacker_todo_list/core_methods.rb', line 3 def self.get_from_console(console_string, hide_input = false) print "#{console_string} " system "stty -echo" if hide_input user_input = gets.chomp system "stty echo" if hide_input return user_input end |
.list_formatter ⇒ Object
11 12 13 14 15 16 |
# File 'lib/hacker_todo_list/core_methods.rb', line 11 def self.list_formatter puts "" puts "Hacker ToDo List:" yield puts "" end |