SpiceQA
Questions
Tags
Users
Badges
Why does a class inherit from a struct
user_3127959
0
Created Mar 21, 2016
Edited Mar 21, 2016
Viewed 1974
Follow
Is
class A < Struct.new(:att) end
the same as
class A attr_accessor :att end
in Ruby?
ruby
4
0
Add comment
+
Share
2 Answers
Related