Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class parent
- @selectors = {
- 'a': 'hello',
- 'b': 'world',
- }
- end
- class child < parent
- @selectors = {
- 'b': 'foo',
- 'c': 'bar',
- }
- def initialize()
- what I want here is to merge the selectors from my child class and my parent class. So puts(@selectors) would show :
- {a:hello,b:foo,c:bar}
- }
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement