Let's say you want a transform that replaces substrings like "translate:foo" by the I18n translation for "foo". This transform will incorrectly discard characters left and right...
...from "translate:foo": Transform /\btranslate:(.+?)\b/ do |key| I18n.t(key) end A more correct version of that transform would be this: Transform /^(.*?)\btranslate:(.+?)\b(.*?)$/ do |left, key, right| left + I18n.t...
...for my own reference, of a few ways to easily delete the dot-underscore (._foo, ._bar, etc.) files created by (badly-behaved) Mac OS X systems on non-AFP server...
...are three solutions for you. Easiest solution Rethink! Do you really need CONSTANT = %w[foo bar] to be constant? In many cases, setting it as a simple attribute will do...
Best results in other decks
Fritz!Box sends the name that is entered into Fritz!Box' web interface. This overrides your local address book.