Method: FlexColumns::Util::DynamicMethodsModule#define_method
- Defined in:
- lib/flex_columns/util/dynamic_methods_module.rb
#define_method(name, &block) ⇒ Object
Defines a method. Works identically to Module#define_method, except that it’s public and #remove_all_methods! will remove the method.
73 74 75 76 77 |
# File 'lib/flex_columns/util/dynamic_methods_module.rb', line 73 def define_method(name, &block) name = name.to_sym super(name, &block) @methods_defined[name] = true end |