class MyClass def my_method @hash = {2 => "foo", 3 => "bar", 5 => "baz"} @string = "quux" end end