# File lib/puppet/provider.rb, line 257 257: def initialize(resource = nil) 258: if resource.is_a?(Hash) 259: # We don't use a duplicate here, because some providers (ParsedFile, at least) 260: # use the hash here for later events. 261: @property_hash = resource 262: elsif resource 263: @resource = resource 264: # LAK 2007-05-09: Keep the model stuff around for backward compatibility 265: @model = resource 266: @property_hash = {} 267: else 268: @property_hash = {} 269: end 270: end