class Delayer::Bucket

Attributes

first[RW]
last[RW]
priority_of[RW]
stashed[RW]

Public Class Methods

new(first, last, priority_of, stashed) click to toggle source
# File lib/delayer/extend.rb, line 11
def initialize(first, last, priority_of, stashed)
  @first = first
  @last = last
  @priority_of = priority_of
  @stashed = stashed
end

Public Instance Methods

stash_size() click to toggle source
# File lib/delayer/extend.rb, line 18
def stash_size
  s = stashed
  if s
    1 + s.stash_size
  else
    0
  end
end