Module: Rex::Ui::Subscriber::Output
- Included in:
- Rex::Ui::Subscriber
- Defined in:
- lib/rex/ui/subscriber.rb
Overview
Subscribes to the output half of the user interface.
Instance Attribute Summary collapse
-
#user_output ⇒ Object
The user output handle.
Instance Method Summary collapse
-
#flush ⇒ Object
Wraps user_output.flush.
-
#print(msg = '') ⇒ Object
Wraps user_output.print.
-
#print_debug(msg = '') ⇒ Object
Wraps user_output.print_debug.
-
#print_error(msg = '') ⇒ Object
Wraps user_output.print_error.
-
#print_good(msg = '') ⇒ Object
Wraps user_output.print_good.
-
#print_line(msg = '') ⇒ Object
Wraps user_output.print_line.
-
#print_status(msg = '') ⇒ Object
Wraps user_output.print_status.
Instance Attribute Details
#user_output ⇒ Object
The user output handle.
85 86 87 |
# File 'lib/rex/ui/subscriber.rb', line 85 def user_output @user_output end |
Instance Method Details
#flush ⇒ Object
Wraps user_output.flush
78 79 80 |
# File 'lib/rex/ui/subscriber.rb', line 78 def flush user_output.flush if (user_output) end |
#print(msg = '') ⇒ Object
Wraps user_output.print
71 72 73 |
# File 'lib/rex/ui/subscriber.rb', line 71 def print(msg='') user_output.print(msg) if (user_output) end |
#print_debug(msg = '') ⇒ Object
Wraps user_output.print_debug
61 62 63 64 65 66 |
# File 'lib/rex/ui/subscriber.rb', line 61 def print_debug(msg='') if (user_output) print_blank_line if user_output.prompting? user_output.print_debug(msg) end end |
#print_error(msg = '') ⇒ Object
Wraps user_output.print_error
41 42 43 44 45 46 |
# File 'lib/rex/ui/subscriber.rb', line 41 def print_error(msg='') if (user_output) print_blank_line if user_output.prompting? user_output.print_error(msg) end end |
#print_good(msg = '') ⇒ Object
Wraps user_output.print_good
51 52 53 54 55 56 |
# File 'lib/rex/ui/subscriber.rb', line 51 def print_good(msg='') if (user_output) print_blank_line if user_output.prompting? user_output.print_good(msg) end end |
#print_line(msg = '') ⇒ Object
Wraps user_output.print_line
21 22 23 24 25 26 |
# File 'lib/rex/ui/subscriber.rb', line 21 def print_line(msg='') if (user_output) print_blank_line if user_output.prompting? user_output.print_line(msg) end end |
#print_status(msg = '') ⇒ Object
Wraps user_output.print_status
31 32 33 34 35 36 |
# File 'lib/rex/ui/subscriber.rb', line 31 def print_status(msg='') if (user_output) print_blank_line if user_output.prompting? user_output.print_status(msg) end end |