Class: Gcodify::Ops::GcodeOp

Inherits:
Gcodify::Op show all
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

#options

Instance Method Summary collapse

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_gcodeObject


14
15
16
# File 'lib/gcodify/ops/gcodeop.rb', line 14

def to_gcode
  @str+'\n'
end