Created
January 10, 2016 06:54
-
-
Save msroot/e86c5c3bfc526d3e49fb to your computer and use it in GitHub Desktop.
parsing ruby with javascript (opal) text/ruby
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <script src="http://cdn.opalrb.org/opal/current/opal.js"></script> | |
| <script src="http://cdn.opalrb.org/opal/current/opal-parser.js"></script> | |
| <script type="text/javascript">Opal.load('opal-parser')</script> | |
| <script type="text/ruby"> | |
| %w[a b c ].map{|el| puts el} | |
| </script> | |
| </head> | |
| <body> | |
| </body> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment