Class: Timer::Abstruct

Inherits:
Object
  • Object
show all
Defined in:
lib/skype/os/timer.rb

Direct Known Subclasses

Interval, Timeout

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#blockObject (readonly)

Returns the value of attribute block.



53
54
55
# File 'lib/skype/os/timer.rb', line 53

def block
  @block
end

#termObject (readonly)

Returns the value of attribute term.



53
54
55
# File 'lib/skype/os/timer.rb', line 53

def term
  @term
end

Class Method Details

.delete(instance) ⇒ Object



42
43
44
# File 'lib/skype/os/timer.rb', line 42

def delete instance
  @stack.delete instance
end

.new(term, block) ⇒ Object



36
37
38
39
40
# File 'lib/skype/os/timer.rb', line 36

def new term, block
  instance = super
  @stack << instance
  return instance
end

Instance Method Details

#deleteObject



49
50
51
# File 'lib/skype/os/timer.rb', line 49

def delete
  self.class.delete self
end