Sha256: 98cfdfea296407d6b2e25bfff35755c4d013b8ae3da603c7f25b702bba2274d0
Contents?: true
Size: 352 Bytes
Versions: 13
Compression:
Stored size: 352 Bytes
Contents
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
Version data entries
13 entries across 13 versions & 1 rubygems