# File lib/cgikit/key_value_coding.rb, line 16 def value_for_key( __key ) # escape sharing local variable scope of instance_eval by __key. __key = __key.to_s.gsub(/\A\^^(\w+)/) { "binding_value(:#{$1})" } begin instance_eval(__key.to_s.untaint) rescue Exception => e if /\A[a-zA-Z0-9_]+\Z/ === __key.to_s then raise e, "#{e.message} - #{self.class}##{__key}" else raise e, "#{e.message} - \"#{__key}\" for #{self.class}" end end end