123456789_123456789_123456789_123456789_123456789_

Class: DRb::DRbURIOption

Do not use. This class is for internal use only.
Relationships & Source Files
Inherits: Object
Defined in: lib/drb/drb.rb

Overview

I don't understand the purpose of this class…

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(option) ⇒ DRbURIOption

[ GitHub ]

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

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

Instance Attribute Details

#option (readonly)

[ GitHub ]

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

attr_reader :option

Instance Method Details

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

[ GitHub ]

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

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

#eql?(other)

Alias for #==.

[ GitHub ]

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

alias eql? ==

#hash

[ GitHub ]

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

def hash
  @option.hash
end

#to_s

[ GitHub ]

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

def to_s; @option; end