Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class A
- def initialize
- end
- end
- class B < A
- def initialize(args={})
- super
- @args = args
- end
- end
- b = B.new({:name => 'Ruby'})
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement