module Luruju module DynamicMethod class IsNotMyRole < StandardError end def method_missing method, *args methods.select{|m|/^dyna_.*/ =~ m.to_s}.sort.each do |dyna_method| return send(dyna_method, method, *args) rescue IsNotMyRole end super method, *args end end end