Class: DRb::DRbURIOption
- Inherits:
-
Object
- Object
- DRb::DRbURIOption
- Defined in:
- lib/drb/drb_object.rb
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.
164 165 166 |
# File 'lib/drb/drb_object.rb', line 164 def initialize(option) @option = option.to_s end |
Instance Attribute Details
#option ⇒ Object (readonly)
Returns the value of attribute option.
167 168 169 |
# File 'lib/drb/drb_object.rb', line 167 def option @option end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
170 171 172 173 |
# File 'lib/drb/drb_object.rb', line 170 def ==(other) return false unless DRbURIOption === other @option == other.option end |
#hash ⇒ Object
175 176 177 |
# File 'lib/drb/drb_object.rb', line 175 def hash @option.hash end |
#to_s ⇒ Object
168 |
# File 'lib/drb/drb_object.rb', line 168 def to_s; @option; end |