# File lib/PageTemplate/parser.rb, line 341 def define_global_var(rx) @glossary ||= {} rx = /^(#{key.to_s}(?:\.\w+\??)*)(?:\s:(\w+))?$/ unless rx.is_a?(Regexp) @glossary[rx] = lambda { |match| ValueCommand.new(match[1],match[2]) } end