Module: Puppet::Pops::Types::PRegexpType::ClassModule

Defined in:
lib/puppet/pops/types/types.rb

Instance Method Summary collapse

Instance Method Details

#==(o) ⇒ Object



226
227
228
# File 'lib/puppet/pops/types/types.rb', line 226

def ==(o)
  self.class == o.class && pattern == o.pattern
end

#hashObject



222
223
224
# File 'lib/puppet/pops/types/types.rb', line 222

def hash
  [self.class, pattern].hash
end

#regexp_derivedObject



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