magic

in lib/magic/core/string.rb [9:12]


  def magic(flags = Magic::NONE)
    Magic.open(flags) {|mgc| mgc.buffer(self) }
  end