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
224 225 226 227 228 |
# File 'lib/easyprompt.rb', line 224 def gets( separator = $/ ) changed notify_observers old_gets( separator ) end |
#old_gets ⇒ Object
222 |
# File 'lib/easyprompt.rb', line 222 alias_method :old_gets, :gets |