Class: ThreadMsg

Inherits:
Struct
  • Object
show all
Defined in:
lib/nub/thread_comm.rb

Overview

Provides a simple messaging mechanism between threads

Instance Attribute Summary collapse

Instance Attribute Details

#cmdObject

Returns the value of attribute cmd

Returns:

  • (Object)

    the current value of cmd



25
26
27
# File 'lib/nub/thread_comm.rb', line 25

def cmd
  @cmd
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



25
26
27
# File 'lib/nub/thread_comm.rb', line 25

def value
  @value
end