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



224
225
226
227
228
# File 'lib/easyprompt.rb', line 224

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

#old_getsObject



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

alias_method :old_gets, :gets