Method: Puppet::Pops::Types::PNumericType#instance?
- Defined in:
- lib/puppet/pops/types/types.rb
#instance?(o, guard = nil) ⇒ Boolean
941 942 943 |
# File 'lib/puppet/pops/types/types.rb', line 941 def instance?(o, guard = nil) o.is_a?(Numeric) && o >= @from && o <= @to end |