Sha256: 7f466903199d399e93bf411607c7868f3c478ce41b40082df17abb88cb83932e
Contents?: true
Size: 508 Bytes
Versions: 7
Compression:
Stored size: 508 Bytes
Contents
# The Message class's subclasses, each used for holding one line of a chat. module Pidgin2Adium # A message saying e.g. "Blahblah has gone away." class StatusMessage < Message def initialize(sender, time, buddy_alias, status) super(sender, time, buddy_alias) @status = status end attr_accessor :status def to_s return sprintf('<status type="%s" sender="%s" time="%s" alias="%s"/>' << "\n", @status, @sender, @time, @buddy_alias) end end end
Version data entries
7 entries across 7 versions & 1 rubygems