class ReeDto::DtoCollection
def ==(other)
def ==(other) if other.is_a?(self.class) @list == other.instance_variable_get(:@list) else @list == other end end
def each(&block)
def each(&block) @list.each(&block) end
def filter(name, filter_proc)
def filter(name, filter_proc) define_method name do ReeDto::CollectionFilter.new(self, name, filter_proc) end end
def initialize(name, contract, parent_class)
def initialize(name, contract, parent_class) @parent_class = parent_class @contract = contract @name = name @list = [] end
def inspect
def inspect @list.inspect end
def to_s
def to_s inspect end