Class: StringInputMethod

Inherits:
StringIO
  • Object
show all
Defined in:
lib/tailog/ext/irb.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#promptObject

Returns the value of attribute prompt.



85
86
87
# File 'lib/tailog/ext/irb.rb', line 85

def prompt
  @prompt
end

Instance Method Details

#encodingObject



86
# File 'lib/tailog/ext/irb.rb', line 86

def encoding; string.encoding end

#getsObject



88
89
90
91
92
# File 'lib/tailog/ext/irb.rb', line 88

def gets
  line = super
  IRB.Output << [ :stdin, line ] if line
  line
end