Source code for expandobjects.expansions.expansion_base

from expandobjects.exceptions import VirtualMethodUse


[docs]class BaseExpansion(object): """The base ExpandObjects rule class, to be derived for each expansion rule"""
[docs] def do_json_expansion(self, input_context): """Virtual method for performing an expansion on JSON, should take an object and return one""" raise VirtualMethodUse("BaseExpansion", "do_json_expansion")
[docs] def do_idf_expansion(self, input_context): """Virtual method for performing an expansion on IDF, should take some form of IDF object and return ...""" raise VirtualMethodUse("BaseExpansion", "do_idf_expansion")