| Module | BackDoor |
| In: |
lib/back_door.rb
|
| FLAG_ATTRIBUTE | = | :@backdoor_processed |
# File lib/back_door.rb, line 5
5: def attr
6: unless attributes.instance_variable_get FLAG_ATTRIBUTE
7: attributes.each do |key,value|
8: # *toDO* if we use "locals" instead of "globals" in "globals.page.instance_eval", in <r:children:each> "self" is different from outter scope, why?
9: attributes[ key] = globals.page.instance_eval( value[ 1..-1]).to_s if value && value.length > 1 && value[ 0..0] == "#"
10: end
11: attributes.instance_variable_set FLAG_ATTRIBUTE, true
12: end
13: attributes
14: end