Module: Bj::Table::RecursivelyInherited

Defined in:
lib/bj/table.rb

Instance Method Summary collapse

Instance Method Details

#inherited(other) ⇒ Object



78
79
80
81
82
83
84
85
# File 'lib/bj/table.rb', line 78

def inherited other
  super
ensure
  (Table.list << other).uniq!
  basename = other.name.split(%r/::/).last.underscore
  Table.singleton_class{ fattr basename => other }
  other.send :extend, RecursivelyInherited
end