Class: Jabber::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/zoe/jabber.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#reply_toObject

Returns the value of attribute reply_to.



2
3
4
# File 'lib/zoe/jabber.rb', line 2

def reply_to
  @reply_to
end

Instance Method Details

#to_me?Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/zoe/jabber.rb', line 4

def to_me?
 !!( body =~ /(^|\s)@#{Zoe.jid.nick}(\s|$)/i || from.strip.to_s == reply_to.strip.to_s)
end