module RegexMethod::ClassMethods
Public Instance Methods
define_regex_method(method_name, &block)
click to toggle source
# File lib/regex_method.rb, line 5 def define_regex_method(method_name, &block) raise "No method block given for #{method_name}" unless block_given? self.regex_methods[method_name] = block end