module Mumukit::RuntimeShortcuts

Public Instance Methods

method_missing(name, *args, &block) click to toggle source
Calls superclass method
# File lib/mumukit/runtime/shortcuts.rb, line 2
def method_missing(name, *args, &block)
  n = name.to_s
  if n =~ /(.*)_hook\?/
    hook_defined? $1.to_sym
  elsif  n =~ /(.*)_hook/
    new_hook $1.to_sym
  else
    super
  end
end