Sha256: 7642918133a26f19ba544d8279cfeff2a1f71bad3cec1575598a27d8dc93241b
Contents?: true
Size: 411 Bytes
Versions: 1
Compression:
Stored size: 411 Bytes
Contents
require 'ykutils/treemanager' module Ykutils class TreeManager def addTag( node_name , tag_name ) unless @tag @tag = { } end unless @tag[node_name] @tag[node_name] = [tag_name] else @tag[node_name] << tag_name end end def getTag( node_name) ret = nil if @tag ret = @tag[node_name] end ret end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ykutils-0.1.0 | lib/ykutils/treemanagera.rb |