Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/xmppbot/other.rb
Instance Method Summary collapse
Instance Method Details
#node ⇒ Object
30 31 32 |
# File 'lib/xmppbot/other.rb', line 30 def node self.match(/[^\@]*/i).to_s end |
#resource ⇒ Object
26 27 28 |
# File 'lib/xmppbot/other.rb', line 26 def resource self.match(/\/.*/i).to_s.delete("/") end |
#scrap_resource ⇒ Object
22 23 24 |
# File 'lib/xmppbot/other.rb', line 22 def scrap_resource self.match(/[^\/]*/i).to_s end |