lib/puppet/pops/model/factory.rb
# Checks if the object is already a model object, or build it
Checks if the object is already a model object, or build it
Checks if the object is already a model object or build it
def to_ops(o, *args)
    if o.kind_of?(Model::PopsObject)
      o
    else
      build(o, *args)
    end
  end
def to_ops ( o , * args ) if o . kind_of? ( Model :: PopsObject ) o else build ( o , * args ) end end
Checks if the object is already a model object, or build it
Checks if the object is already a model object or build it
o
<not_specific>
args
<not_specific>