Sha256: 07ecf43b00709de9666ab5cf22a751b152230f7e050ece6c0923db15b2efe881
Contents?: true
Size: 642 Bytes
Versions: 6
Compression:
Stored size: 642 Bytes
Contents
require File.dirname(__FILE__) + "/../../command_handler" require File.dirname(__FILE__) + "/../node" module Glimmer module XML module CommandHandlers class XmlTextCommandHandler include CommandHandler def can_handle?(parent, command_symbol, *args, &block) (parent == nil or parent.is_a?(Node)) and (command_symbol.to_s == "text") and ((args.size == 1) and (args[0].is_a?(String))) and !block end def do_handle(parent, command_symbol, *args, &block) parent.children << args[0] if parent args[0] end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems