Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/xmppbot/other.rb

Instance Method Summary collapse

Instance Method Details

#nodeObject



30
31
32
# File 'lib/xmppbot/other.rb', line 30

def node
	self.match(/[^\@]*/i).to_s
end

#resourceObject



26
27
28
# File 'lib/xmppbot/other.rb', line 26

def resource
	self.match(/\/.*/i).to_s.delete("/")
end

#scrap_resourceObject



22
23
24
# File 'lib/xmppbot/other.rb', line 22

def scrap_resource
	self.match(/[^\/]*/i).to_s
end