class Rouge::FileReader

def file

def file
  case input
  when '-'
    IO.new($stdin.fileno, 'rt:bom|utf-8')
  when String
    File.new(input, 'rt:bom|utf-8')
  when ->(i){ i.respond_to? :read }
    input
  end
end