Changeset 190

Show
Ignore:
Timestamp:
11/18/04 14:59:08 (4 years ago)
Author:
ged
Message:

-- Removed bogus #to_s for SpeechEvent?.
-- Aesthetic change to output: now shows the contents of SpeechEvents?.

Location:
branches/simplest-thing
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/simplest-thing/acceptance/epic4.rb

    r189 r190  
    168168    end 
    169169 
     170    def handleSpeechEvent( ev ) 
     171        prelude = "Observer heard: %s" % describeEvent( ev ) 
     172        $defout.puts %q{%s, "%s"} % [ prelude, ev.words ] 
     173    end 
     174 
    170175    def handleVisualEvent( ev ) 
    171176        $defout.puts "Observer saw: %s" % describeEvent( ev ) 
  • branches/simplest-thing/lib/fm/events/perceptual.rb

    r188 r190  
    9393        alias_method :speaker, :instigator 
    9494 
    95  
    96         ### Return the event as an english sentence. 
    97         def to_s 
    98             prelude = super 
    99             return %q{%s, "%s"} % [ prelude, @words ] 
    100         end 
    10195    end 
    10296