1
2
3
4
x = 'My String'

x.kind_of? String # => true
...

Ruby x.kind_of? MyClass or x.cla...

by phylae.myopenid.com, September 10, 2008 03:58, 5 refactorings, tagged with class, kind_of?

It seems like these two are...

20bdcaa65891ace11f18e393c6e1f729 Talk
1
2
3
4
class String 
  def postal?  
    self.match(/[a-zA-Z]{1}\d{1}[a-zA-Z]{1}([\x20-])*\d{1}[a-zA-Z]{1}\d{1}/) ? true : false
...

Ruby Is This String Postal?

by Gary Haran, October 30, 2007 15:29, 6 refactorings, tagged with string, class, postal

We've had the debate over w...

403e57e2be130d2218f992b86dfa8260 Talk