def things_n_stuff

Adventures in Code

Ruby Inheritance Quiz - Beginner/Intermediate

Miniquiz. Given:

1
2
3
4
5
6
7
8
9
10
11
class Thing < AbstractThing
  include SomeActions
  include OtherActions
  include MoreActions
  extend Existence

  def be
    puts "thing LIVES"
  end

end

If AbstractThing, SomeActions, OtherAction, MoreActions, and Existence all implement a method definition for explode, and we execute the following:

1
2
3
my_brain = Thing.new
my_brain.explode
#=> ...

Where does the method explode get called?

Answer will be posted: 10/16