Class: Net::IMAP::ConnectionState
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
DataLite
|
|
Instance Chain:
self,
DataLite
|
|
Inherits: |
Net::IMAP::DataLite
|
Defined in: | lib/net/imap/connection_state.rb |
Constant Summary
-
Authenticated =
# File 'lib/net/imap/connection_state.rb', line 37define(:authenticated)
-
Logout =
# File 'lib/net/imap/connection_state.rb', line 39define(:logout)
-
NotAuthenticated =
# File 'lib/net/imap/connection_state.rb', line 36define(:not_authenticated)
-
Selected =
# File 'lib/net/imap/connection_state.rb', line 38define(:selected)
DataLite
- Inherited
Class Method Summary
Instance Attribute Summary
- #authenticated? ⇒ Boolean readonly
- #logout? ⇒ Boolean readonly
- #not_authenticated? ⇒ Boolean readonly
- #selected? ⇒ Boolean readonly
Instance Method Summary
- #deconstruct
- #deconstruct_keys(names)
- #name
- #symbol (also: #to_sym)
- #to_h(&block)
-
#to_sym
Alias for #symbol.
DataLite
- Inherited
#==, #deconstruct, #deconstruct_keys, #encode_with, #eql?, #hash, #init_with, #inspect, #members, #to_h, | |
#to_s | Alias for DataLite#inspect. |
#with, | |
#__inspect_guard__ | Yields |
#__to_h__, #initialize_copy, #marshal_dump |
Class Method Details
.define(symbol, *attrs)
[ GitHub ]Instance Attribute Details
#authenticated? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/net/imap/connection_state.rb', line 32
def authenticated?; to_sym == :authenticated end
#logout? ⇒ Boolean
(readonly)
[ GitHub ]
#not_authenticated? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/net/imap/connection_state.rb', line 31
def not_authenticated?; to_sym == :not_authenticated end
#selected? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/net/imap/connection_state.rb', line 33
def selected?; to_sym == :selected end
Instance Method Details
#deconstruct
[ GitHub ]# File 'lib/net/imap/connection_state.rb', line 17
def deconstruct; [symbol, *super] end
#deconstruct_keys(names)
[ GitHub ]#name
[ GitHub ]# File 'lib/net/imap/connection_state.rb', line 14
def name; self.class::NAME.name end
#symbol Also known as: #to_sym
[ GitHub ]# File 'lib/net/imap/connection_state.rb', line 13
def symbol; self.class::NAME end
#to_h(&block)
[ GitHub ]# File 'lib/net/imap/connection_state.rb', line 26
def to_h(&block) hash = deconstruct_keys(nil) block ? hash.to_h(&block) : hash end
#to_sym
Alias for #symbol.
# File 'lib/net/imap/connection_state.rb', line 15
alias to_sym symbol