Re: Point an element in Hash Object


#1

Oh… and your actual problem is that the HashReference object isn’t
actually getting the to_yaml call - it’s passing that through to the
wrapped object, which writes itself out in full. You’ll need to add
to_yaml (or is it some other method? Check the YAML docs) to the methods
that aren’t removed.

(instance_methods - [“send”, “id”,“to_yaml”]).each {|m|
undef_method m}

def initialize(hash, key)
@hash = hash
@key = key
end
def method_missing(*args, &block)
@hash[@key].send(*args, &block)
end
end

#####################################################################################
This email has been scanned by MailMarshal, an email content filter.
#####################################################################################
#####################################################################################
This e-mail message has been scanned for Viruses and Content and cleared
by NetIQ MailMarshal
#####################################################################################