Module: Flexpay::APIModule
- Defined in:
- lib/flexpay/api_module.rb
Class Method Summary collapse
Class Method Details
.included(mod) ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/flexpay/api_module.rb', line 3 def self.included(mod) mod.class_eval do self.class_variable_set(:@@included_in, {}) def self.included(mod) class_variable_get(:@@included_in)[mod.to_s.split('::').last.to_sym] = mod end def self.specific_class(lookup_sym) class_variable_get(:@@included_in)[lookup_sym] end end end |