Method: Mysh::StringSource#get_command
- Defined in:
- lib/mysh/sources/string.rb
#get_command(_str = "") ⇒ Object Also known as: get_command_extra
Get the initial line of command input.
16 17 18 19 20 21 |
# File 'lib/mysh/sources/string.rb', line 16 def get_command(_str="") @read_pt.next rescue StopIteration @eoi = true "\n" end |