# Pastebin sqKcB8Di class ParentClass def a_method @a=10 @b=20 end end class SomeClass < ParentClass def another_method # this is not working puts @a puts @b end end