[Nitro] strange syntax in og/entity.rb

Stephan Walter news at stephan.walter.name
Thu Apr 20 05:37:01 EDT 2006


while digging around in the Og code, I found this in og/entity.rb, line
598, private method "finder":

%|#{field_name} #{options.delete("#{name}_op".to_sym) || '='} #{ogmanager.store.quote(value)}|

I couldn't find anything in the ruby docs, but I would guess that the
%|...| will evaluate the string it contains. Is that correct? If yes, I
see a problem that the string itself contains pipes.


More information about the Nitro-general mailing list