spec/fixtures/music.rb in analyst-0.16.1 vs spec/fixtures/music.rb in analyst-1.0.0
- old
+ new
@@ -47,40 +47,48 @@
mic.shout "♬ Hang the DJ! ♬"
end
end
class Song
-
def initialize(popularity)
@popularity = popularity
end
end
module Instruments
class Stringed
-
def initialize(num_strings)
@num_strings = num_strings
end
end
class Guitar < Stringed
-
def initialize(sound)
super(6)
@sound = sound
end
end
end
module Performances
module Equipment
+
class Amp
+ include Interfaces::Basic
+ def self.companion_gear(type)
+ [
+ Performances::Equipment::Microphone.new("mic_1").on,
+ Performances::Equipment::MicStand.new("mic_1_stand")
+ ]
+ end
end
class Microphone
end
+
+ class MicStand
+ end
+
end
end
-