Created
November 18, 2010 18:18
-
-
Save Arcath/705370 to your computer and use it in GitHub Desktop.
TrainBBCode Callback Demo
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def up_handler(input) | |
input.upcase | |
end | |
>> "[up]HeLlo WorLd[/up]".tbbc(:custom_tags => [[/\[up\](.*?)\[\/up\]/,"Callback: up_handler",true]]) | |
=> "HELLO WORLD" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment