Class: DRb::DRbURIOption

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(option) ⇒ DRbURIOption

Returns a new instance of DRbURIOption.



164
165
166
# File 'lib/drb/drb_object.rb', line 164

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

Instance Attribute Details

#optionObject (readonly)

Returns the value of attribute option.



167
168
169
# File 'lib/drb/drb_object.rb', line 167

def option
  @option
end

Instance Method Details

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



170
171
172
173
# File 'lib/drb/drb_object.rb', line 170

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

#hashObject



175
176
177
# File 'lib/drb/drb_object.rb', line 175

def hash
  @option.hash
end

#to_sObject



168
# File 'lib/drb/drb_object.rb', line 168

def to_s; @option; end