Giles Bowkett wrote: > check this out, this is the whiniest change ever, but what I want is > this to work: > > irb(main):001:0> "".is_a? String > => true > irb(main):002:0> [].is_an? Array > NoMethodError: undefined method `is_an?' for []:Array > from (irb):2 > > > I just HATE writing "is_a? Array" because it's grammatically incorrect. > > I realize this is incredibly silly and anal, but the thing is, all you > have to do is one simple alias command and you're good to go. > > so -- how do I contribute to Ruby itself? Well, unlike a lot of languages, in Ruby you can modify all sorts of built-ins. I don't personally believe that a case such as this warrants it though, and often in Ruby it's better to use respond_to? (duck typing) depending on the situation of course. class Array def is_an?(klass) return is_a?(klass) end end [].is_an? Array #=> true -- Posted via http://www.ruby-forum.com/.