Class: Gcodify::Ops::GcodeOp
- Inherits:
-
Gcodify::Op
- Object
- Gcodify::Op
- Gcodify::Ops::GcodeOp
- Defined in:
- lib/gcodify/ops/gcodeop.rb
Overview
An Gcodify::Op for passing through a line (or more) of GCode, since there are things that haven’t been implemented yet that could be done in raw gcode. GcodeOp passes through a string in the same manner as DummyOp, but it adds ‘n’ to the end.
Instance Attribute Summary
Attributes inherited from Gcodify::Op
Instance Method Summary collapse
-
#initialize(str) ⇒ GcodeOp
constructor
A new instance of GcodeOp.
- #to_gcode ⇒ Object
Constructor Details
#initialize(str) ⇒ GcodeOp
Returns a new instance of GcodeOp.
10 11 12 |
# File 'lib/gcodify/ops/gcodeop.rb', line 10 def initialize(str) @str = str end |
Instance Method Details
#to_gcode ⇒ Object
14 15 16 |
# File 'lib/gcodify/ops/gcodeop.rb', line 14 def to_gcode @str+'\n' end |