Class: GCoder::GCode::Comment

Inherits:
Command show all
Defined in:
lib/gcoder/gcode.rb

Instance Attribute Summary

Attributes inherited from Command

#args, #code

Instance Method Summary collapse

Methods inherited from Command

#initialize

Constructor Details

This class inherits a constructor from GCoder::GCode::Command

Instance Method Details

#textObject

Returns the text of the comment without the parentheses



117
118
119
# File 'lib/gcoder/gcode.rb', line 117

def text
  code
end

#to_sObject



121
122
123
# File 'lib/gcoder/gcode.rb', line 121

def to_s
  "(#{code})"
end