Displaying 2 results from an estimated 2 matches for "raisees".
Did you mean:
raises
2007 Jan 05
0
[830] trunk/wxruby2/lib/wx/classes/icon.rb: Raise exception if bad icon is specified (eg incorrect file path)
...007-01-05 22:17:42 UTC (rev 830)
</span><span class="lines">@@ -0,0 +1,15 @@
</span><ins>+class Wx::Icon
+ # Redefine the initialize method so it raises an exception if a
+ # bad argument - in particular, a non-existent file - is given to the
+ # constructor. It raisees an error if no data has been set to the icon.
+ wx_init = self.instance_method(:initialize)
+ define_method(:initialize) do | *args |
+ wx_init.bind(self).call(*args)
+
+ # Zero-argument form allowed, for use with later copy_from_bitmap
+ if args.length.nonzero? and not ok
+ Kernel....
2007 Jan 06
0
[834] trunk/wxruby2/lib/wx/classes/icon.rb: Simpler test for non-existent icon files
...,14 @@
</span><span class="cx"> class Wx::Icon
</span><span class="cx"> # Redefine the initialize method so it raises an exception if a
</span><del>- # bad argument - in particular, a non-existent file - is given to the
- # constructor. It raisees an error if no data has been set to the icon.
</del><ins>+ # non-existent file is given to the constructor; otherwise, wx Widgets
+ # just carries on with an empty icon, which may cause faults later
</ins><span class="cx"> wx_init = self.instance_method(:initia...