Class: StringInputMethod
- Inherits:
-
StringIO
- Object
- StringIO
- StringInputMethod
- Defined in:
- lib/tailog/ext/irb.rb
Instance Attribute Summary collapse
-
#prompt ⇒ Object
Returns the value of attribute prompt.
Instance Method Summary collapse
Instance Attribute Details
#prompt ⇒ Object
Returns the value of attribute prompt.
85 86 87 |
# File 'lib/tailog/ext/irb.rb', line 85 def prompt @prompt end |
Instance Method Details
#encoding ⇒ Object
86 |
# File 'lib/tailog/ext/irb.rb', line 86 def encoding; string.encoding end |
#gets ⇒ Object
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 |