class Tzispa::Annotation
Attributes
context[RW]
Public Class Methods
+@()
click to toggle source
# File lib/tzispa/annotations/annotation.rb, line 22 def +@ +new end
annotations()
click to toggle source
rubocop:disable Style/ClassVars
# File lib/tzispa/annotations/annotation.rb, line 15 def annotations return __annotations_container if @@annmutext.locked? synchronize do __annotations_container end end
current_annotations()
click to toggle source
# File lib/tzispa/annotations/annotation.rb, line 26 def current_annotations annotations.pop annotations.size end
synchronize() { || ... }
click to toggle source
# File lib/tzispa/annotations/annotation.rb, line 30 def synchronize @@annmutext.synchronize { yield } end
Private Class Methods
__annotations_container()
click to toggle source
# File lib/tzispa/annotations/annotation.rb, line 36 def __annotations_container @@current_annotations ||= [] end
Public Instance Methods
+@()
click to toggle source
# File lib/tzispa/annotations/annotation.rb, line 7 def +@ self.class.synchronize do self.class.annotations << self end end