define_method -> define_singleton_method

This commit is contained in:
Denis Knauf 2010-04-01 14:01:16 +02:00
parent 8989f3c559
commit 61c013ea38

View file

@ -66,6 +66,7 @@ class LogAn::AutoValueConvertHash
@each ||= source.method( :each) rescue NameError
define_singleton_method :encode, &@encode if @encode
define_singleton_method :decode, &@decode if @decode
LogAn::Logging.debug encode: @encode, decode: @decode
end
def [] k