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