In Files

  • drb/timeridconv.rb

DRb::TimerIdConv

Public Class Methods

new(timeout=600) click to toggle source
 
               # File drb/timeridconv.rb, line 74
def initialize(timeout=600)
  @holder = TimerHolder2.new(timeout)
end
            

Public Instance Methods

to_id(obj) click to toggle source
 
               # File drb/timeridconv.rb, line 85
def to_id(obj)
  return @holder.add(obj)
end
            
to_obj(ref) click to toggle source
 
               # File drb/timeridconv.rb, line 78
def to_obj(ref)
  return super if ref.nil?
  @holder.fetch(ref)
rescue TimerHolder2::InvalidIndexError
  raise "invalid reference"
end
            

Commenting is here to help enhance the documentation. For example, code samples, or clarification of the documentation.

If you have questions about Ruby or the documentation, please post to one of the Ruby mailing lists. You will get better, faster, help that way.

If you wish to post a correction of the docs, please do so, but also file bug report so that it can be corrected for the next release. Thank you.

If you want to help improve the Ruby documentation, please visit Documenting-ruby.org.

blog comments powered by Disqus