Class: Symbol

Inherits:
Object show all
Defined in:
lib/extensions/class-extensions.rb

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object

ActiveModel serialization depends on this method



69
70
71
# File 'lib/extensions/class-extensions.rb', line 69

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

#to_fObject



64
65
66
# File 'lib/extensions/class-extensions.rb', line 64

def to_f
  0
end