Zebra API Doc



() Function

Interface is a special class that is used to "pitch" a class with a some marker. It is not supposed an interface directly rules which method the class has to implement.

   // declare "I" interface
   var I = zebra.Interface();

   // declare "A" class that implements "I" interface
   var A = zebra.Class(I, [ function m() {} ]);

   // instantiate "A" class
   var a = new A();
   zebra.instanceOf(a, I);  // true 
   zebra.instanceOf(a, A);  // true

Return: Function

an interface