Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DataMapper#Collection
- repository
- # a note on collection/repository association would be
- # helpful
- load
- # is load lazy?
- reload
- # when query argument may be helpful?
- get
- # can we use multiple keys?
- # how cache is organized? are queries cached or what?
- # how model/query/repository/key are all associated in the code?
- get!
- # is ok
- all
- # how efficient is it? is it scary just like AR's?
- # one can NOT chain all calls: @post.comments.all(...).all(...)
- first
- # # TODO: this shouldn't be a kicker if scoped_query() is called is
- # unclear
- last
- # how efficient is current implementation?
- at
- # does load unless objecs are loaded: need to stress this
- slice
- # can we use #to_i on first argument and check for it? I mean
- # this: return at(args.first) if args.size == 1 && args.first.kind_of?(Integer)
- # alias [] needs to be mentioned
- reverse
- # how efficient is it?
- <<
- # operates on a single element
- push
- # operates on multiple elements
- unshift
- # operates on multiple elements
- replace
- # idea of orphaned resources needs to be briefly described
- pop
- # ditto
- shift
- # ditto
- delete
- # ditto
- delete_at
- # ditto
- clear
- # ditto
- build
- # does it return new object?
- create
- # does it return created object?
- update!
- # looks ok
- destroy!
- # looks ok
- properties
- # if it's public, when would I use it?
- relationships
- # ditto
- default_attributes
- # ditto
- respond_to?
- # ditto
- model
- # would be great to describe how it is used currently
- initialize
- # public but misses docs
- add
- # would be great to describe how it is used currently
- relate_resource
- # would be great to describe how it is used currently
- orphan_resource
- # would be great to describe how it is used currently
- scoped_query
- # would be great to describe how it is used currently
- keys
- # would be great to describe how it is used currently
- identity_map
- # would be great to describe how it is used currently
- # delegates to repository's IM: mention this
- set_relative_position
- # would be great to describe how it is used currently
- method_missing
- # would be great to describe how it is used currently
Add Comment
Please, Sign In to add comment