Class: Neuro::Display::Input
- Inherits:
-
CanvasGroup
- Object
- CanvasGroup
- Neuro::Display::Input
- Includes:
- Draw
- Defined in:
- lib/neuro/display.rb
Constant Summary
Constants included from Draw
Draw::HEIGHT, Draw::LAYERS, Draw::WIDTH, Draw::XGAP, Draw::YGAP
Instance Method Summary collapse
-
#initialize(root, iv, i, offsets) ⇒ Input
constructor
A new instance of Input.
Constructor Details
#initialize(root, iv, i, offsets) ⇒ Input
Returns a new instance of Input.
33 34 35 36 37 38 39 |
# File 'lib/neuro/display.rb', line 33 def initialize(root, iv, i, offsets) @i, @offsets = i, offsets @value = "%.3f" % iv x, y = position super(root, :x => x, :y => y) draw_text end |