Skip to content

Instantly share code, notes, and snippets.

@0xradical
Created February 7, 2013 17:28
Show Gist options
  • Select an option

  • Save 0xradical/4732590 to your computer and use it in GitHub Desktop.

Select an option

Save 0xradical/4732590 to your computer and use it in GitHub Desktop.
Testing Github colors for Ruby
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