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.



979
980
981
# File 'lib/drb/drb.rb', line 979

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

Instance Attribute Details

#optionObject (readonly)

Returns the value of attribute option.



982
983
984
# File 'lib/drb/drb.rb', line 982

def option
  @option
end

Instance Method Details

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



985
986
987
988
# File 'lib/drb/drb.rb', line 985

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

#hashObject



990
991
992
# File 'lib/drb/drb.rb', line 990

def hash
  @option.hash
end

#to_sObject



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

def to_s; @option; end