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