Class: WiseGopher::Base
- Inherits:
-
Object
- Object
- WiseGopher::Base
- Defined in:
- lib/wise_gopher/base.rb
Overview
Main inteface of the gem. Class to be inherited by the query class
Defined Under Namespace
Modules: ClassMethods, Methods
Class Method Summary collapse
Class Method Details
.inherited(child_class) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/wise_gopher/base.rb', line 8 def self.inherited(child_class) parent_class = self child_class.extend ClassMethods child_class.set_defaults # if child_class is already a WiseGopher::Base child_class.ancestors.include?(Methods) && child_class.class_eval do @raw_params = parent_class.raw_params.deep_dup @params = parent_class.params.deep_dup @row_class = parent_class.row_class end child_class.include Methods end |