Method: Puppet::Pops::Types::PStringType#instance?
- Defined in:
- lib/puppet/pops/types/types.rb
#instance?(o, guard = nil) ⇒ Boolean
1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 |
# File 'lib/puppet/pops/types/types.rb', line 1546 def instance?(o, guard = nil) # true if size compliant if o.is_a?(String) if @size_type_or_value.is_a?(PIntegerType) @size_type_or_value.instance?(o.size, guard) else @size_type_or_value.nil? ? true : o == value end else false end end |