hacks/interface |
class Module < Object |
E.g.:
module Foo interface_method :foo interface_method :bar endclass XYZ def bar end end
class Bar < XYZ def foo puts "foo" end
b = Bar.new assert_object_includes_complete(b, Foo) b.foo b.bar
Public Methods |
Determine if a class includes a module, in O(n) time.
Returns: true if the class includes the module, false otherwise.
Private Methods |
Declare an abstract method.
symbol | the name of the method. |
---|
Public Methods |
Determine if a class includes a module, in O(n) time.
Returns: true if the class includes the module, false otherwise.
Determine if an object's class includes a module, in O(n) time.
Returns: true if the object's class includes the module, false otherwise.
Determine if a class includes a module and implements all the module's abstract methods, in O(n+m) time.
Returns: true if the class includes the module, false otherwise.
Determine if an object's class includes a module and implements all the module's abstract methods, in O(n+m) time.
Returns: true if the object's class includes the module, false otherwise.