lib/zena/parser/zena_rules.rb in zena-0.15.2 vs lib/zena/parser/zena_rules.rb in zena-0.16.0
- old
+ new
@@ -1,8 +1,9 @@
module Zena
module Parser
module ZenaRules
+ # FIXME: remove all this when rubyless is in place !
def start(mode)
super
if @method =~ /^\[(.*)\]$/
# do='[text]
@method = 'show'
@@ -11,16 +12,9 @@
# do='{v_text}'
@method = 'zazen'
@params[:attr] = $1
elsif @method =~ /\A(\w+)\s+(\w+)\s+(.+)$/
# 'pages where name ...'
- @params[:select] = @method
- @method = 'context'
- end
-
- if @method == 'with' || self.respond_to?("r_#{@method}")
- # ok
- else
@params[:select] = @method
@method = 'context'
end
end
end # ZenaRules
\ No newline at end of file