lib/disposable/composition.rb in disposable-0.0.6 vs lib/disposable/composition.rb in disposable-0.0.7

- old
+ new

@@ -10,12 +10,15 @@ # include Disposable::Composition # # map( {cd: [[:id], [:name]], band: [[:id, :band_id], [:title]]} ) # end # + # Composition adds #initialize to the includer. + # # album = Album.new(cd: CD.find(1), band: Band.new) # album.id #=> 1 # album.title = "Ten Foot Pole" + # album.band_id #=> nil # # It allows accessing the contained models using the `#[]` reader. module Composition def self.included(base) base.extend(Forwardable) \ No newline at end of file