Class: Tapout::Curmudgeon
- Inherits:
-
Object
- Object
- Tapout::Curmudgeon
- Defined in:
- lib/tapout/cli.rb
Overview
< IO
Instance Method Summary collapse
- #gets ⇒ Object
-
#initialize(input) ⇒ Curmudgeon
constructor
A new instance of Curmudgeon.
- #line1 ⇒ Object
Constructor Details
#initialize(input) ⇒ Curmudgeon
Returns a new instance of Curmudgeon.
91 92 93 94 |
# File 'lib/tapout/cli.rb', line 91 def initialize(input) @input = input @line1 = input.gets end |
Instance Method Details
#gets ⇒ Object
98 99 100 101 102 103 |
# File 'lib/tapout/cli.rb', line 98 def gets (class << self; self; end).class_eval %{ def gets; @input.gets; end } return @line1 end |
#line1 ⇒ Object
95 96 97 |
# File 'lib/tapout/cli.rb', line 95 def line1 @line1 end |