Class: TTYtest::Dummy
- Inherits:
-
Object
- Object
- TTYtest::Dummy
- Defined in:
- lib/ttytest/dummy.rb
Instance Attribute Summary collapse
-
#contents ⇒ Object
Returns the value of attribute contents.
-
#cursor_position ⇒ Object
Returns the value of attribute cursor_position.
Instance Method Summary collapse
- #capture ⇒ Object
-
#initialize ⇒ Dummy
constructor
A new instance of Dummy.
Constructor Details
#initialize ⇒ Dummy
Returns a new instance of Dummy.
5 6 7 8 |
# File 'lib/ttytest/dummy.rb', line 5 def initialize @contents = "\n"*23 @cursor_position = [0,0] end |
Instance Attribute Details
#contents ⇒ Object
Returns the value of attribute contents.
3 4 5 |
# File 'lib/ttytest/dummy.rb', line 3 def contents @contents end |
#cursor_position ⇒ Object
Returns the value of attribute cursor_position.
3 4 5 |
# File 'lib/ttytest/dummy.rb', line 3 def cursor_position @cursor_position end |