226 227 228
# File 'lib/puppet/pops/types/types.rb', line 226 def ==(o) self.class == o.class && pattern == o.pattern end
222 223 224
# File 'lib/puppet/pops/types/types.rb', line 222 def hash [self.class, pattern].hash end
217 218 219 220
# File 'lib/puppet/pops/types/types.rb', line 217 def regexp_derived @_regexp = Regexp.new(pattern) unless @_regexp && @_regexp.source == pattern @_regexp end