When I reading source code of Beast, I found a lot of code like this:
<%= 'Password'[:password_title] %>
It seems like a call to [] method with Symbol as input parameter to a String to me, but I didn’t find such type of parameter of String [] method in the ruby API. What is this means? thanks in advance.
It’s a method added by the ‘Gibberish’ plug-in Beast uses, for internationalization. Remember, classes in Ruby are open, so you can’t always count on the standard API in cases like this!