Class: Sequel::Model

Inherits:
Object show all
Defined in:
lib/kiss/model.rb

Direct Known Subclasses

Kiss::Model

Instance Method Summary collapse

Instance Method Details

#inherited(subclass) ⇒ Object



312
313
314
315
316
# File 'lib/kiss/model.rb', line 312

def inherited(subclass)
  self.instance_variables.each do |var|
    subclass.instance_variable_set(var, instance_variable_get(var))
  end
end