Created
February 7, 2013 17:28
-
-
Save 0xradical/4732590 to your computer and use it in GitHub Desktop.
Testing Github colors for 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
| require "test" | |
| CONSTANT = 777 | |
| # Sample comment | |
| class Module::Class | |
| include Testcase | |
| render :action => 'foo' | |
| def foo(parameter) | |
| @parameter = parameter | |
| end | |
| local_var = eval <<-"FOO";\ | |
| printIndex "Hello world!" | |
| And now this is heredoc! | |
| printIndex "Hello world again!" | |
| FOO | |
| foo("#{$GLOBAL_TIME >> $`} is \Z sample \"string\"" * 777); | |
| if ($1 =~ /sample regular expression/ni) then | |
| begin | |
| puts %W(sample words), CONSTANT, :fooo; | |
| do_something :action => "action" | |
| end | |
| 1.upto(@@n) do |index| printIndex 'Hello' + index end | |
| \\\\\\\\\\ | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment