In ruby basically we have no built in option for creating Interface. We just need to force the base class method to act like an Interface method.
raise ‘Exception! This method must be implemented before accessing it.’
class SubclassName < InterfaceName
If we want to do the following then it raises Exception…
SubclassName . show