class Rouge::FileReader

def file

def file
  case input
  when '-'
    $stdin
  when String
    File.new(input)
  when ->(i){ i.respond_to? :read }
    input
  end
end