lib/robot/commands/no_op.rb in robot_rea-0.1.5 vs lib/robot/commands/no_op.rb in robot_rea-0.1.6
- old
+ new
@@ -1,12 +1,13 @@
-# A no operation command that's returned to avoid nil exceptions when the command the user
-# enters is invalid. The idea is based on the null pointer design pattern
+# frozen_string_literal: true
module Robot
module Commands
- class NoOp < Base
+ # A no operation command that gets returned to avoid nil exceptions when the command the user
+ # enters is invalid. The idea is based on the null pointer design pattern
- def self.matches?(command)
+ class NoOp < Base
+ def self.matches?(_command)
true
end
def self.call(position)
position