# File lib/puppet/parser/ast/leaf.rb, line 93
 93:     def initialize(hash)
 94:       super
 95: 
 96:       # Note that this is an AST::Regex, not a Regexp
 97:       @value = @value.to_s.downcase unless @value.is_a?(Regex)
 98:       if @value =~ /[^-\w.]/
 99:         raise Puppet::DevError,
100:           "'#{@value}' is not a valid hostname"
101:       end
102:     end