Sha256: afcbe03a37f7b2377e56827fd6c6368396cbfdcbe25c78ccff74baaf83f0087c
Contents?: true
Size: 502 Bytes
Versions: 1
Compression:
Stored size: 502 Bytes
Contents
module Ego class Robot attr_reader :name, :options def initialize(options, formatter) @name = options.robot_name @options = options @formatter = formatter end def respond(message, *replacements) @formatter.robot_respond message, *replacements end def it(message) @formatter.robot_action message end def debug(message, *replacements) return unless @options.verbose @formatter.debug message, *replacements end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ego-0.3.0 | lib/ego/robot.rb |