Class: DRb::DRbURIOption
- Inherits:
-
Object
- Object
- DRb::DRbURIOption
- Defined in:
- lib/drb/drb.rb
Overview
:nodoc: I don’t understand the purpose of this class…
Instance Attribute Summary collapse
-
#option ⇒ Object
readonly
Returns the value of attribute option.
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #hash ⇒ Object
-
#initialize(option) ⇒ DRbURIOption
constructor
A new instance of DRbURIOption.
- #to_s ⇒ Object
Constructor Details
#initialize(option) ⇒ DRbURIOption
Returns a new instance of DRbURIOption.
1022 1023 1024 |
# File 'lib/drb/drb.rb', line 1022 def initialize(option) @option = option.to_s end |
Instance Attribute Details
#option ⇒ Object (readonly)
Returns the value of attribute option.
1025 1026 1027 |
# File 'lib/drb/drb.rb', line 1025 def option @option end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
1028 1029 1030 1031 |
# File 'lib/drb/drb.rb', line 1028 def ==(other) return false unless DRbURIOption === other @option == other.option end |
#hash ⇒ Object
1033 1034 1035 |
# File 'lib/drb/drb.rb', line 1033 def hash @option.hash end |
#to_s ⇒ Object
1026 |
# File 'lib/drb/drb.rb', line 1026 def to_s; @option; end |