lib/ellen/action.rb in ellen-0.2.5 vs lib/ellen/action.rb in ellen-0.2.6

- old
+ new

@@ -29,9 +29,13 @@ def name options[:name] end + def <=>(action) + pattern.to_s <=> action.pattern.to_s + end + private def pattern_with(robot_name) if all? /\A#{pattern}/