32
33
34
35
36
37
38
39
40
41
|
# File 'lib/representable/debug.rb', line 32
def evaluate_option(name, *args, &block)
Debug.representable_log "=====#{self[name]}" if name ==:prepare
Debug.representable_log (evaled = self[name]) ?
" #evaluate_option [#{name}]: eval!!!" :
" #evaluate_option [#{name}]: skipping"
value = super
Debug.representable_log " #evaluate_option [#{name}]: --> #{value}" if evaled
Debug.representable_log " #evaluate_option [#{name}]: -->= #{args.first}" if name == :setter
value
end
|