lib/blather/jid.rb in blather-0.4.16 vs lib/blather/jid.rb in blather-0.5.0

- old
+ new

@@ -44,15 +44,17 @@ # in a maximum total size (including the '@' and '/' separators) of 3071 # bytes. class JID include Comparable + # Validating pattern for JID string PATTERN = /^(?:([^@]*)@)??([^@\/]*)(?:\/(.*?))?$/.freeze attr_reader :node, :domain, :resource + # @private def self.new(node, domain = nil, resource = nil) node.is_a?(JID) ? node : super end # Create a new JID object