Module: RegexMethod::ClassMethods
- Defined in:
- lib/regex_method.rb
Instance Method Summary collapse
Instance Method Details
#define_regex_method(method_name, &block) ⇒ Object
5 6 7 8 |
# 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 |