Skip to content

Commit

Permalink
Just backpush in OpsMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
erinzm committed Jul 9, 2015
1 parent 5bddadf commit 72cf747
Showing 1 changed file with 2 additions and 16 deletions.
18 changes: 2 additions & 16 deletions lib/gcodify/opsmixin.rb
Expand Up @@ -15,9 +15,7 @@ module Gcodify::OpsMixin
#
# @return [HoleOp] a hole-drilling operation
def hole(options)
op = Gcodify::Ops::HoleOp.new(options)
@ops << op
op
@ops = Gcodify::Ops::HoleOp.new(options)
end

# (see #hole)
Expand All @@ -35,19 +33,7 @@ def face(options)
# that you might want to use.
#
# @param gcode [String] a line of gcode
# @return [GcodeOp] a {GcodeOp} representing that line of gcode
def gcode(code)
op = Gcodify::Ops::GcodeOp(code)
@ops << op
op
end

# Returns a dummy operation for testing
#
# @return [DummyOp] a dummy operation
def dummy(options)
op = Gcodify::Ops::DummyOp.new(options)
@ops << op
op
@ops << Gcodify::Ops::GcodeOp(code)
end
end

0 comments on commit 72cf747

Please sign in to comment.