Class: MatrixDBus::Matrix2DBus
- Inherits:
-
DBus::Object
- Object
- DBus::Object
- MatrixDBus::Matrix2DBus
- Defined in:
- lib/matrix_dbus/dbus.rb
Overview
DBus
Instance Attribute Summary collapse
-
#matrix ⇒ Object
readonly
Returns the value of attribute matrix.
Instance Method Summary collapse
-
#initialize(*args) ⇒ Matrix2DBus
constructor
A new instance of Matrix2DBus.
- #run ⇒ Object
Constructor Details
#initialize(*args) ⇒ Matrix2DBus
Returns a new instance of Matrix2DBus.
6 7 8 9 |
# File 'lib/matrix_dbus/dbus.rb', line 6 def initialize(*args) @matrix = MatrixDBus::Matrix.new super end |
Instance Attribute Details
#matrix ⇒ Object (readonly)
Returns the value of attribute matrix.
4 5 6 |
# File 'lib/matrix_dbus/dbus.rb', line 4 def matrix @matrix end |
Instance Method Details
#run ⇒ Object
11 12 13 |
# File 'lib/matrix_dbus/dbus.rb', line 11 def run Thread.new { @matrix.run } end |