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