Module: ActiveMocker::LateInclusion::Extension
- Included in:
- Queries::AR52
- Defined in:
- lib/active_mocker/late_inclusion.rb
Instance Method Summary collapse
Instance Method Details
#prepended(const) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/active_mocker/late_inclusion.rb', line 6 def prepended(const) if const.respond_to?(:__extended_onto__) const.__extended_onto__.each do |ex| ex.extend self end end if const.respond_to?(:__included_onto__) const.__included_onto__.each do |ex| ex.prepend self end end end |