lib/ruote/exp/command.rb in ruote-2.2.0 vs lib/ruote/exp/command.rb in ruote-2.3.0
- old
+ new
@@ -1,7 +1,7 @@
#--
-# Copyright (c) 2005-2011, John Mettraux, jmettraux@gmail.com
+# Copyright (c) 2005-2012, John Mettraux, jmettraux@gmail.com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
@@ -28,11 +28,16 @@
#
# Commands are understood by the cursor, loop and iterator expressions.
#
module CommandMixin
+ # Field name '__command__', where one can place a command.
+ #
F_COMMAND = '__command__'
- ATT_COMMANDS = %w[ break rewind over stop ]
+
+ # break_if, break_unless, rewind_if, rewind_unless, ...
+ #
+ ATT_COMMANDS = %w[ break rewind reset over stop ]
protected
# TODO : :ignore_workitem / :disallow => 'workitem' thing ?