177 178 179
# File 'lib/puppet/pops/types/types.rb', line 177 def ==(o) self.class == o.class && pattern == o.pattern end
173 174 175
# File 'lib/puppet/pops/types/types.rb', line 173 def hash [self.class, pattern].hash end
168 169 170 171
# File 'lib/puppet/pops/types/types.rb', line 168 def regexp_derived @_regexp = Regexp.new(pattern) unless @_regexp && @_regexp.source == pattern @_regexp end