define_method -> define_singleton_method
This commit is contained in:
parent
8989f3c559
commit
61c013ea38
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue