Skip to content

Commit 14ad314

Browse files
committed
✨ Add attr_readers for @host and @PORT
1 parent 1c20813 commit 14ad314

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/net/imap.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,12 @@ class IMAP < Protocol
736736

737737
attr_accessor :client_thread # :nodoc:
738738

739+
# The hostname this client connected to
740+
attr_reader :host
741+
742+
# The port this client connected to
743+
attr_reader :port
744+
739745
# Returns the debug mode.
740746
def self.debug
741747
return @@debug

0 commit comments

Comments
 (0)