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

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

Overview

API:

  • public

Instance Method Summary collapse

Instance Method Details

#==(o) ⇒ Object

API:

  • public



181
182
183
# File 'lib/puppet/pops/types/types.rb', line 181

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

#hashObject

API:

  • public



177
178
179
# File 'lib/puppet/pops/types/types.rb', line 177

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

#regexp_derivedObject

API:

  • public



172
173
174
175
# File 'lib/puppet/pops/types/types.rb', line 172

def regexp_derived
  @_regexp = Regexp.new(pattern) unless @_regexp && @_regexp.source == pattern
  @_regexp
end