Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does attributable work with "deep" inheritance of mix-ins? #1

Open
louismrose opened this issue Apr 11, 2014 · 0 comments
Open

Does attributable work with "deep" inheritance of mix-ins? #1

louismrose opened this issue Apr 11, 2014 · 0 comments
Labels

Comments

@louismrose
Copy link
Member

Add tests to investigate whether or not inheritance / includes of depth > 1 work well.

For example, does the the following work well? Does the same example work well when specified using modules and include?

class Person
  extend Attributable
  attributes :name, friends: []
end

class Employee < Person
  attributes :salary, officemates: []
end

class Salesperson < Employee
  attributes :bonus, quota: 100
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant