Class: Symbol

Inherits:
Object
  • Object
show all
Defined in:
lib/tire/rubyext/symbol.rb

Overview

ActiveModel::Serialization Ruby < 1.9.x compatibility

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



4
5
6
# File 'lib/tire/rubyext/symbol.rb', line 4

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

#capitalizeObject



8
9
10
# File 'lib/tire/rubyext/symbol.rb', line 8

def capitalize
  to_s.capitalize
end