# Dialgo.run

**URL:** <https://www.ruby-forum.com/t/dialgo-run/118645>\
**Category:** Ruby-Gnome 2\
**Created:** [October 29, 2007, 7:04pm UTC](https://www.ruby-forum.com/t/dialgo-run/118645 "2007-10-29T19:04:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![1000tonlab](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/1/41988e/32.png) [@1000tonlab](https://www.ruby-forum.com/u/1000tonlab)\
**Post date:** [October 29, 2007, 7:04pm UTC](https://www.ruby-forum.com/t/dialgo-run/118645/1 "2007-10-29T19:04:51Z")

</div>

Can I override the run method? in the Gtk::Dialog (s)  
if yes how??

---

<div class="post-metadata">

**Author:** ![1000tonlab](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/1/41988e/32.png) [@1000tonlab](https://www.ruby-forum.com/u/1000tonlab)\
**Post date:** [October 31, 2007, 1:16am UTC](https://www.ruby-forum.com/t/dialgo-run/118645/2 "2007-10-31T01:16:49Z")

</div>

> Can I override the run method? in the Gtk::Dialog (s)  
> if yes how??

Not sure if this helps you but

class Gtk::Dialog  
def run  
puts “hi” # and do whatever else is needed  
end  
end

x = Gtk::Dialog.new  
x.run

# hi

Or use your own method which will do the things you want to see,  
then invoke the original run?
