b0VIM 7.2b`MX jbetufsla~jbe/dev/ripple_oh_caramba/lib/ripple_oh_caramba.rbutf-8 3210#"! UtpLad [ LqS+*l3' e F @ ? > =   p Q K J  i J D C B 5 4  x f ` _ [ q k Q C 4  end end key_on :token token(:tokenend enend end key_on :token token(:token, end end end eneeeeeeeeeeeeeeeend end key_on :token token(:token, &blk) def token_key!(&blk) end lambda { ActiveSupport::SecureRandom.urlsafe_base64(16) } property name, String, :default => blk || def token(name, &blk) ### TOKENS end raise 'not imlemented yet' kls = opts[:class] as = opts[:as] def reference_many_mutual(name, opts={}) end raise 'not imlemented yet' kls = opts[:class] as = opts[:as] def reference_one_mutual(name, opts={}) end raise 'not imlemented yet' kls = opts[:class] as = opts[:as] def many_mutual(name, opts={}) end raise 'not imlemented yet' kls = opts[:class] as = opts[:as] def one_mutual(name, opts={}) end raise 'not imlemented yet' kls = opts[:class] def reference_many(name, opts={}) end CODE end self.#{name}_key = doc.key @#{name} = doc raise "must have a key" unless doc.key end raise "got " + doc.class + ", expected #{kls}" if doc.class != #{kls} def #{name}=(doc) end @#{name} ||= #{kls}.find(#{name}_key) def #{name} class_eval <<-CODE property :"#{name}_key", String name.camelize.constantize kls = opts[:class] || name = name.to_s def reference_one(name, opts={})module Ripple::Document::ClassMethods# Monkey likes to patchrequire 'ripple'