Class: ExcADG::Request
- Inherits:
-
Object
- Object
- ExcADG::Request
- Defined in:
- lib/excadg/request.rb
Overview
base class for messages between Ractors
Direct Known Subclasses
Defined Under Namespace
Classes: AddVertex, GetStateData, Update
Instance Attribute Summary collapse
-
#self ⇒ Object
readonly
Returns the value of attribute self.
Instance Method Summary collapse
-
#initialize ⇒ Request
constructor
A new instance of Request.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ Request
Returns a new instance of Request.
12 13 14 |
# File 'lib/excadg/request.rb', line 12 def initialize @self = Ractor.current end |
Instance Attribute Details
#self ⇒ Object (readonly)
Returns the value of attribute self.
10 11 12 |
# File 'lib/excadg/request.rb', line 10 def self @self end |
Instance Method Details
#to_s ⇒ Object
16 17 18 |
# File 'lib/excadg/request.rb', line 16 def to_s "#{self.class} from #{@self}" end |