Sha256: 72e77ccfbd39824b98b9f45f8c155c03a47b8db6450d6c9f011b3580912e79bd

Contents?: true

Size: 552 Bytes

Versions: 16

Compression:

Stored size: 552 Bytes

Contents

module Zena
  module Use
    module ZafuEval
      module ZafuMethods
        def r_eval
          text = @blocks.first
          if !text.kind_of?(String) || @blocks.size > 1
            parser_error("Cannot evaluate RubyLess codes with zafu methods")
          else
            res = RubyLess.translate(self, text)
            if res.literal.kind_of?(String)
              erb_escape res.literal
            else
              "<%= #{res} %>"
            end
          end
        end
      end # ZafuMethods
    end # ZafuEval
  end # Use
end # Zena

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
zena-1.2.7 lib/zena/use/zafu_eval.rb
zena-1.2.6 lib/zena/use/zafu_eval.rb
zena-1.2.5 lib/zena/use/zafu_eval.rb
zena-1.2.4 lib/zena/use/zafu_eval.rb
zena-1.2.3 lib/zena/use/zafu_eval.rb
zena-1.2.2 lib/zena/use/zafu_eval.rb
zena-1.2.1 lib/zena/use/zafu_eval.rb
zena-1.2.0 lib/zena/use/zafu_eval.rb
zena-1.1.3 lib/zena/use/zafu_eval.rb
zena-1.1.2 lib/zena/use/zafu_eval.rb
zena-1.1.1 lib/zena/use/zafu_eval.rb
zena-1.1.0 lib/zena/use/zafu_eval.rb
zena-1.0.0 lib/zena/use/zafu_eval.rb
zena-1.0.0.rc3 lib/zena/use/zafu_eval.rb
zena-1.0.0.rc2 lib/zena/use/zafu_eval.rb
zena-1.0.0.rc1 lib/zena/use/zafu_eval.rb