Sha256: 8a02453dcf21b281c11217a17c2e762af3c65cd9edacd88901ba205bc3de4683

Contents?: true

Size: 608 Bytes

Versions: 10

Compression:

Stored size: 608 Bytes

Contents

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'
          @params[:attr_or_date] = $1
        elsif @method =~ /^\{(.*)\}$/
          # do='{text}'
          @method = 'zazen'
          @params[:attr] = $1
        elsif @method =~ /\A(\w+)\s+(\w+)\s+(.+)$/
          # 'pages where title ...'
          @params[:select] = @method
          @method = 'context'
        end
      end
    end # ZenaRules
  end # Parser
end # Zena

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
zena-1.2.1 lib/zena/parser/zena_rules.rb
zena-1.2.0 lib/zena/parser/zena_rules.rb
zena-1.1.3 lib/zena/parser/zena_rules.rb
zena-1.1.2 lib/zena/parser/zena_rules.rb
zena-1.1.1 lib/zena/parser/zena_rules.rb
zena-1.1.0 lib/zena/parser/zena_rules.rb
zena-1.0.0 lib/zena/parser/zena_rules.rb
zena-1.0.0.rc3 lib/zena/parser/zena_rules.rb
zena-1.0.0.rc2 lib/zena/parser/zena_rules.rb
zena-1.0.0.rc1 lib/zena/parser/zena_rules.rb