lib/ruote/exp/fe_command.rb in ruote-2.1.11 vs lib/ruote/exp/fe_command.rb in ruote-2.2.0
- old
+ new
@@ -1,7 +1,7 @@
#--
-# Copyright (c) 2005-2010, John Mettraux, jmettraux@gmail.com
+# Copyright (c) 2005-2011, 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
@@ -85,11 +85,11 @@
#
class CommandExpression < FlowExpression
include CommandMixin
- names :skip, :back, :jump, :rewind, :continue, :break, :stop
+ names :skip, :back, :jump, :rewind, :continue, :break, :stop, :over
def apply
param = case name
when 'skip', 'back' then attribute(:step) || attribute_text
@@ -141,10 +141,10 @@
# expression that includes the CommandMixin
#
# (CommandExpression includes CommandMixin, but since it doesn't have
# children, no need to 'evince' it)
#
- def fetch_command_target (exp=parent)
+ def fetch_command_target(exp=parent)
case exp
when nil then nil
when Ruote::Exp::CommandedExpression then exp
else fetch_command_target(exp.parent)