Sha256: 6622f58061f74968903765b365230a745d14d7c8ba7a61c8655dfd9f610edec5
Contents?: true
Size: 587 Bytes
Versions: 37
Compression:
Stored size: 587 Bytes
Contents
module MongoDoc module Root attr_reader :_root %w(_modifier_path _selector_path).each do |getter| module_eval(<<-RUBY, __FILE__, __LINE__) def #{getter} @#{getter} ||= '' end RUBY end %w(_modifier_path _root _selector_path).each do |setter| module_eval(<<-RUBY, __FILE__, __LINE__) def #{setter}=(value) @#{setter} = value _associations.each do|a| association = send(a) association.#{setter} = value if association end end RUBY end end end
Version data entries
37 entries across 37 versions & 2 rubygems