--- !ruby/object:RI::MethodDescription 
aliases: 
- !ruby/object:RI::AliasName 
  name: "[]"
block_params: 
comment: 
- !ruby/struct:SM::Flow::P 
  body: Returns the value of the attribute.
- !ruby/struct:SM::Flow::P 
  body: Do not read from instance variables directly, but use this method. This method handles lazy loading the attribute 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\n      &quot;#{attribute_get(:first_name)} #{attribute_get(:last_name)}&quot;\n    end\n\n    # using the shorter syntax\n    def name_for_address_book\n      &quot;#{last_name}, #{first_name}&quot;\n    end\n  end\n"
- !ruby/struct:SM::Flow::P 
  body: "@param [Symbol] name"
- !ruby/struct:SM::Flow::VERB 
  body: "  name of attribute to retrieve\n"
- !ruby/struct:SM::Flow::P 
  body: "@return [Object]"
- !ruby/struct:SM::Flow::VERB 
  body: "  the value stored at that given attribute\n  (nil if none, and default if necessary)\n"
- !ruby/struct:SM::Flow::P 
  body: "@api public"
full_name: DataMapper::Resource#attribute_get
is_singleton: false
name: attribute_get
params: (name)
visibility: public
