class_docstr: Represents a ring domain. 
class_docstr_tok: ["Represents","a","ring","domain","."]
docstr: Generate an ideal of ``self``.
  
  >>> from sympy.abc import x
  >>> from sympy import QQ
  >>> QQ.old_poly_ring(x).ideal(x**2)
  <x**2>
docstr_tok: ["Generate","an","ideal","of","``","self","``",".",">",">",">","from","sympy.abc","import","x",">",">",">","from","sympy","import","QQ",">",">",">","QQ.old_poly_ring","(","x",")",".ideal","(","x","*","*","2",")","<","x","*","*","2",">"]
code: def ideal(self, *gens):
      """
      Generate an ideal of ``self``.
  
      >>> from sympy.abc import x
      >>> from sympy import QQ
      >>> QQ.old_poly_ring(x).ideal(x**2)
      <x**2>
      """
      from sympy.polys.agca.ideals import ModuleImplementedIdeal
  
      return ModuleImplementedIdeal(
          self, self.free_module(1).submodule(*[[x] for x in gens])
      )
  
file_path: sympy/sympy/polys/domains/ring.py
imports: from sympy.polys.domains.domain import Domain
  from sympy.polys.polyerrors import ExactQuotientFailed, NotInvertible, NotReversible
  from sympy.utilities import public
label_desc: Use image node_id 12 for calling the Ring obj's underlying member method code with example usage: obj.ideal() and returns: ModuleImplementedIdeal