Class: LS4::MemoryRelayTimeStampService::Stamp

Inherits:
Object
  • Object
show all
Includes:
RelayTimeStamp
Defined in:
lib/ls4/service/rts_memory.rb

Instance Method Summary collapse

Constructor Details

#initializeStamp

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

#closeObject



35
36
# File 'lib/ls4/service/rts_memory.rb', line 35

def close
end

#getObject



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