Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class X
- A = 10
- class Y
- def display
- puts "Inside Class Y"
- end
- end
- end
- puts (X::A)
- obj = X::Y.new
- obj.display
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement