Module: Representable::Debug::Binding

Defined in:
lib/representable/debug.rb

Instance Method Summary collapse

Instance Method Details

#evaluate_option(name, *args, &block) ⇒ Object



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

#parse_pipelineObject



43
44
45
# File 'lib/representable/debug.rb', line 43

def parse_pipeline(*)
  super.extend(Pipeline::Debug)
end

#render_pipelineObject



47
48
49
# File 'lib/representable/debug.rb', line 47

def render_pipeline(*)
  super.extend(Pipeline::Debug)
end