Sha256: 6a7a6298654ea6326ada8161ee24812e982ca158988e46fed11ac0fea2386f25
Contents?: true
Size: 647 Bytes
Versions: 8
Compression:
Stored size: 647 Bytes
Contents
require 'glimmer/dsl/expression' module Glimmer module DSL module Opal class PropertyExpression < StaticExpression include TopLevelExpression def can_interpret?(parent, keyword, *args, &block) parent and parent.respond_to?(:set_attribute) and keyword and block.nil? end def interpret(parent, keyword, *args, &block) if keyword == 'text' # TODO move into property converters in element proxy args = [args.first.to_s.gsub('&', '') ] end parent.set_attribute(keyword, *args) args.first.to_s end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems