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.



992
993
994
# File 'lib/drb/drb.rb', line 992

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

Instance Attribute Details

#optionObject (readonly)

Returns the value of attribute option



995
996
997
# File 'lib/drb/drb.rb', line 995

def option
  @option
end

Instance Method Details

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



998
999
1000
1001
# File 'lib/drb/drb.rb', line 998

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

#hashObject



1003
1004
1005
# File 'lib/drb/drb.rb', line 1003

def hash
  @option.hash
end

#to_sObject



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

def to_s; @option; end