class IRB::Context

def file_input?

current context, see ::new
Whether #io uses a File for the +input_method+ passed when creating the
def file_input?
  @io.class == FileInputMethod
end