Class: DRb::DRbURIOption

Inherits:
Object
  • Object
show all
Defined in:
lib/drb/drb.rb

Overview

:nodoc: I don’t understand the purpose of this class…

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(option) ⇒ DRbURIOption

Returns a new instance of DRbURIOption.



1021
1022
1023
# File 'lib/drb/drb.rb', line 1021

def initialize(option)
  @option = option.to_s
end

Instance Attribute Details

#optionObject (readonly)

Returns the value of attribute option.



1024
1025
1026
# File 'lib/drb/drb.rb', line 1024

def option
  @option
end

Instance Method Details

#==(other) ⇒ Object Also known as: eql?



1027
1028
1029
1030
# File 'lib/drb/drb.rb', line 1027

def ==(other)
  return false unless DRbURIOption === other
  @option == other.option
end

#hashObject



1032
1033
1034
# File 'lib/drb/drb.rb', line 1032

def hash
  @option.hash
end

#to_sObject



1025
# File 'lib/drb/drb.rb', line 1025

def to_s; @option; end