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 1021

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

Instance Attribute Details

#option (readonly)

[ GitHub ]

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

attr_reader :option

Instance Method Details

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

[ GitHub ]

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

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

#eql?(other)

Alias for #==.

[ GitHub ]

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

alias eql? ==

#hash

[ GitHub ]

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

def hash
  @option.hash
end

#to_s

[ GitHub ]

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

def to_s; @option; end