Module: TkWrapper::VirtualMethods

Defined in:
lib/util/virtual_methods.rb

Overview

used to be abled to define virtual methods in a class which is extended by this module

Defined Under Namespace

Classes: VirtualMethodCalledError

Instance Method Summary collapse

Instance Method Details

#virtual(method) ⇒ Object



16
17
18
# File 'lib/util/virtual_methods.rb', line 16

def virtual(method)
  define_method(method) { raise VirtualMethodCalledError, method }
end