This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'set' | |
s = Set.new | |
class Array | |
def pandigital?(r = 1..9) | |
r = r.to_a unless r.instance_of?(self.class) | |
self.sort == r.sort | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
C:\work\ruby-gnome2-master\gtk3\sample\gtk-demo>ruby -v | |
ruby 2.0.0p0 (2013-02-24) [i386-mingw32] | |
C:\work\ruby-gnome2-master\gtk3\sample\gtk-demo>gem list | |
*** LOCAL GEMS *** | |
atk (1.2.6 x86-mingw32) | |
bigdecimal (1.2.0) | |
cairo (1.12.4 x86-mingw32) |