Skip to content

Commit

Permalink
sortable symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
Jay Adkisson committed Apr 28, 2010
1 parent 8e53098 commit ce770f9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/modesty/core_ext/symbol.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,8 @@ def /(other)
def inspect
self.to_s.split(/\//).map { |s| ":#{s}"}.join('/')
end

def <=>(other)
self.to_s <=> other.to_s
end
end

0 comments on commit ce770f9

Please sign in to comment.