R/AllGenerics.R

# === Generics for gingr methods ====================================

#' @title Get recipe from a Gingr object
#'
#' @name recipe
#' @rdname recipe-methods
#' @exportMethod recipe
setGeneric(
    name = "recipe",
    def = function(object) {
        standardGeneric("recipe")
    }
)


#' @title Get facts from a Gingr object
#'
#' @name gingrFact
#' @rdname gingrFact-methods
#' @exportMethod gingrFact
setGeneric(
    name = "gingrFact",
    def = function(object, character) {
        standardGeneric("gingrFact")
    }
)
btmonier/gingr documentation built on May 13, 2019, 8:40 a.m.