Class: LS4::MemoryRelayTimeStampService::Stamp
- Inherits:
-
Object
- Object
- LS4::MemoryRelayTimeStampService::Stamp
- Includes:
- RelayTimeStamp
- Defined in:
- lib/ls4/service/rts_memory.rb
Instance Method Summary collapse
- #close ⇒ Object
- #get ⇒ Object
-
#initialize ⇒ Stamp
constructor
A new instance of Stamp.
- #set(pos, &block) ⇒ Object
Constructor Details
#initialize ⇒ Stamp
Returns a new instance of Stamp.
31 32 33 |
# File 'lib/ls4/service/rts_memory.rb', line 31 def initialize @mem = 0 end |
Instance Method Details
#close ⇒ Object
35 36 |
# File 'lib/ls4/service/rts_memory.rb', line 35 def close end |
#get ⇒ Object
38 39 40 |
# File 'lib/ls4/service/rts_memory.rb', line 38 def get @mem end |
#set(pos, &block) ⇒ Object
42 43 44 45 46 |
# File 'lib/ls4/service/rts_memory.rb', line 42 def set(pos, &block) block.call if block @mem = pos nil end |