KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
If an instance variable belongs to a class, can I access the instance variable (e.g. @hello ) directly using the class instance? class Hello def method1 @hello = "pavan" end end h = Hello.new puts h.method1
Tags (comma-separated)
Save Edits
Cancel