This is a test file to insure that everything is working well.
# a comment
# another comment
$global = "global"
CONSTANT = []
module Foo
class Bar < Object
@@class_variable = "class variable"
def initialize(options={})
@instance_variable = options
end
def strings
'no interpolation'
"#{interpolation}, and backslashes\n"
%q(no interpolation)
%Q(interpolation and backslashes)
%(interpolation and backslashes)
%{interpolation and backslashes}
%!interpolation and backslashes!
`echo command interpretation with interpolation and backslashes`
%x(echo command interpretation with interpolation and backslashes)
end
def regular_expressions
%r(reg ex)
/^PATTERN$/i
end
def symbols
:symbol1
:"symbol2"
%s(symbol3)
end
end
end
Foo::Bar.new({:one => "one", :two => "two", :three => "three"})
File.open(__FILE__, "r") {|file| file.each_line {|line| puts line}}
bool = true and false or not nil