Module: DYAutomate::UI
- Included in:
- DYAutomate
- Defined in:
- lib/Core/user_interface.rb
Overview
Redirects the messages to an internal store.
Class Attribute Summary collapse
-
.next_input ⇒ Object
(also: gets)
Returns the value of attribute next_input.
-
.output ⇒ Object
Returns the value of attribute output.
-
.warnings ⇒ Object
Returns the value of attribute warnings.
Class Method Summary collapse
- .print(message) ⇒ Object
- .print_warnings ⇒ Object
- .puts(message = '') ⇒ Object
- .warn(message = '', _actions = []) ⇒ Object
Class Attribute Details
.next_input ⇒ Object Also known as: gets
Returns the value of attribute next_input.
16 17 18 |
# File 'lib/Core/user_interface.rb', line 16 def next_input @next_input end |
.output ⇒ Object
Returns the value of attribute output.
14 15 16 |
# File 'lib/Core/user_interface.rb', line 14 def output @output end |
.warnings ⇒ Object
Returns the value of attribute warnings.
15 16 17 |
# File 'lib/Core/user_interface.rb', line 15 def warnings @warnings end |
Class Method Details
.print(message) ⇒ Object
26 27 28 |
# File 'lib/Core/user_interface.rb', line 26 def print() @output << end |
.print_warnings ⇒ Object
32 33 |
# File 'lib/Core/user_interface.rb', line 32 def print_warnings end |
.puts(message = '') ⇒ Object
18 19 20 |
# File 'lib/Core/user_interface.rb', line 18 def puts( = '') @output << "#{}\n" end |
.warn(message = '', _actions = []) ⇒ Object
22 23 24 |
# File 'lib/Core/user_interface.rb', line 22 def warn( = '', _actions = []) @warnings << "#{}\n" end |