Why instance variable is not working in Ruby on rails?

Here is my code:

```
class books
  @price = true
  def new
    p(@price)
  end
end

```

In console it prints `nil` why? I want it to be printed true.