# File lib/puppet/provider.rb, line 245
245:   def initialize(resource = nil)
246:     if resource.is_a?(Hash)
247:       # We don't use a duplicate here, because some providers (ParsedFile, at least)
248:       # use the hash here for later events.
249:       @property_hash = resource
250:     elsif resource
251:       @resource = resource
252:       # LAK 2007-05-09: Keep the model stuff around for backward compatibility
253:       @model = resource
254:       @property_hash = {}
255:     else
256:       @property_hash = {}
257:     end
258:   end