# File lib/chef/resource/script.rb, line 65 def self.guard_inherited_attributes(*inherited_attributes) # Similar to patterns elsewhere, return attributes from this # class and superclasses as a form of inheritance ancestor_attributes = [] if superclass.respond_to?(:guard_inherited_attributes) ancestor_attributes = superclass.guard_inherited_attributes end ancestor_attributes.concat(@class_inherited_attributes ? @class_inherited_attributes : []).uniq end
# File lib/chef/resource/script.rb, line 37 def code(arg=nil) set_or_return( :code, arg, :kind_of => [ String ] ) end
Generated with the Darkfish Rdoc Generator 2.