Class: StringIO

Inherits:
Object
  • Object
show all
Includes:
Observable
Defined in:
lib/easyprompt.rb

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



199
200
201
202
203
# File 'lib/easyprompt.rb', line 199

def gets( separator = $/ )
	changed
	notify_observers
	old_gets( separator )
end

#old_getsObject



197
# File 'lib/easyprompt.rb', line 197

alias_method :old_gets, :gets