Class: StringIO
Overview
EasyPrompt modifies StringIO to be Observable; whenever gets is called, the StringIO’s observers are notified.
Instance Method Summary collapse
Instance Method Details
#gets ⇒ Object
173 174 175 176 177 |
# File 'lib/easyprompt.rb', line 173 def gets changed notify_observers old_gets end |
#old_gets ⇒ Object
171 |
# File 'lib/easyprompt.rb', line 171 alias_method :old_gets, :gets |