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(separator = $/) ⇒ Object
200 201 202 203 204 |
# File 'lib/easyprompt.rb', line 200 def gets( separator = $/ ) changed notify_observers old_gets( separator ) end |
#old_gets ⇒ Object
198 |
# File 'lib/easyprompt.rb', line 198 alias_method :old_gets, :gets |