lib/brewser.rb
# Returns the potential engine to process the given string
Returns the potential engine to process the given string
Returns the potential engine to process the given string
def identify(string_or_io)
      return BrewSON if BrewSON.acceptable?(string_or_io)
      return BeerXML2 if BeerXML2.acceptable?(string_or_io)
      return BeerXML if BeerXML.acceptable?(string_or_io)
      return ProMashTxt if ProMashTxt.acceptable?(string_or_io)
      return ProMashRec if ProMashRec.acceptable?(string_or_io)
      raise Error, "unable to identify content"
    end
def identify ( string_or_io ) return BrewSON if BrewSON . acceptable? ( string_or_io ) return BeerXML2 if BeerXML2 . acceptable? ( string_or_io ) return BeerXML if BeerXML . acceptable? ( string_or_io ) return ProMashTxt if ProMashTxt . acceptable? ( string_or_io ) return ProMashRec if ProMashRec . acceptable? ( string_or_io ) raise Error , "unable to identify content" end
Returns the potential engine to process the given string
Returns the potential engine to process the given string
string_or_io
<not_specific>