# I have a problem with the inheritance of a Gtk::Dialog class

**URL:** <https://www.ruby-forum.com/t/i-have-a-problem-with-the-inheritance-of-a-gtk-dialog-class/175297>\
**Category:** Ruby-Gnome 2\
**Created:** [September 10, 2009, 7:29pm UTC](https://www.ruby-forum.com/t/i-have-a-problem-with-the-inheritance-of-a-gtk-dialog-class/175297 "2009-09-10T19:29:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin\_Sarapik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/94ad74/32.png) [@Martin\_Sarapik](https://www.ruby-forum.com/u/Martin_Sarapik)\
**Post date:** [September 10, 2009, 7:29pm UTC](https://www.ruby-forum.com/t/i-have-a-problem-with-the-inheritance-of-a-gtk-dialog-class/175297/1 "2009-09-10T19:29:50Z")

</div>

Hi,

I’m trying to call a super method, but for some reason it requires  
hash instead of a string.  
All information: [http://pastie.org/612549](http://pastie.org/612549)

Martin S

---

<div class="post-metadata">

**Author:** ![Martin\_Sarapik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/94ad74/32.png) [@Martin\_Sarapik](https://www.ruby-forum.com/u/Martin_Sarapik)\
**Post date:** [September 11, 2009, 12:50am UTC](https://www.ruby-forum.com/t/i-have-a-problem-with-the-inheritance-of-a-gtk-dialog-class/175297/2 "2009-09-11T00:50:02Z")

</div>

Le jeudi 10 septembre 2009 à 20:29 +0300, Martin Sarapik a écrit :

> Hi,
> 
> I’m trying to call a super method, but for some reason it requires  
> hash instead of a string.  
> All information: [http://pastie.org/612549](http://pastie.org/612549)

This is because you used type\_register

super({:title=\>‘New Person’}) should work

Sorry but it’s very late now so I won’t explain more before going to  
bed 🙂

---

<div class="post-metadata">

**Author:** ![Martin\_Sarapik](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/94ad74/32.png) [@Martin\_Sarapik](https://www.ruby-forum.com/u/Martin_Sarapik)\
**Post date:** [September 11, 2009, 12:53am UTC](https://www.ruby-forum.com/t/i-have-a-problem-with-the-inheritance-of-a-gtk-dialog-class/175297/3 "2009-09-11T00:53:33Z")

</div>

Le vendredi 11 septembre 2009 à 00:49 +0200, Pascal T. a écrit :

> Sorry but it’s very late now so I won’t explain more before going to  
> bed 🙂

OK I actually found a place to get the explanation from 🙂

[http://practicalruby.blogspot.com/2007/03/super-accesses-inaccessible.html](http://practicalruby.blogspot.com/2007/03/super-accesses-inaccessible.html)

and register\_type creates a module and includes it
