module Narrator def narrate(text) return unless Fabric.options[:narrate] narration = '' if self.respond_to?(:narrate_as) narration << "[#{self.narrate_as}]" else narration << "[#{self.class.to_s.downcase}]" end narration << " #{text}" puts narration end end class Object include Narrator end