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

#getsObject



173
174
175
176
177
# File 'lib/easyprompt.rb', line 173

def gets
	changed
	notify_observers
	old_gets
end

#old_getsObject



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

alias_method :old_gets, :gets