--- !ruby/object:RI::MethodDescription 
aliases: 
- !ruby/object:RI::AliasName 
  name: "[]="
block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Sets the value of the attribute and marks the attribute as dirty if it has been changed so that it may be saved. Do not set from instance variables directly, but use this method. This method handles the lazy loading the property and returning of defaults if nessesary.
- !ruby/struct:SM::Flow::P 
  body: "@example"
- !ruby/struct:SM::Flow::VERB 
  body: "  class Foo\n    include DataMapper::Resource\n\n    property :first_name, String\n    property :last_name,  String\n\n    def full_name(name)\n      name = name.split(' ')\n      attribute_set(:first_name, name[0])\n      attribute_set(:last_name, name[1])\n    end\n\n    # using the shorter syntax\n    def name_from_address_book(name)\n      name = name.split(', ')\n      first_name = name[1]\n      last_name = name[0]\n    end\n  end\n"
- !ruby/struct:SM::Flow::P 
  body: "@param [Symbol] name"
- !ruby/struct:SM::Flow::VERB 
  body: "  name of attribute to set\n"
- !ruby/struct:SM::Flow::P 
  body: "@param [Object] value"
- !ruby/struct:SM::Flow::VERB 
  body: "  value to store\n"
- !ruby/struct:SM::Flow::P 
  body: "@return [Object]"
- !ruby/struct:SM::Flow::VERB 
  body: "  the value stored at that given attribute, nil if none,\n  and default if necessary\n"
- !ruby/struct:SM::Flow::P 
  body: "@api public"
full_name: DataMapper::Resource#attribute_set
is_singleton: false
name: attribute_set
params: (name, value)
visibility: public
