module Reopened

  def reopened
...

Ruby Execute code when a class i...

by dagobah.myopenid.com, July 15, 2011 05:07, 1 refactoring, tagged with class, ruby, mixins, reopen, trace

Is there a less hacky way t...

55502f40dc8b7c769880b10874abc9d0 Talk
class Item
  def raw_tag_list; "one, two, three, four, five"; end
  def public_tags; [<#Tag name=two>, <#Tag name=five>, <#Tag name=one>, <#Tag name=four>, <#Tag name=three>]; end
...

Ruby Tag ordering code

by k776, March 30, 2009 22:48, 12 refactorings, tagged with speed, class, ruby, arrays

Is there a faster way to do...

74198b06bc9e68739debfe6c23e070d3 Talk
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
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, 9 refactorings, tagged with string, class, postal

We've had the debate over w...

403e57e2be130d2218f992b86dfa8260 Talk