Class: Symbol

Inherits:
Object show all
Defined in:
lib/support/core_ext.rb,
lib/support/active_support_lite/symbol.rb

Overview

:nodoc

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



19
20
21
# File 'lib/support/core_ext.rb', line 19

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

#to_procObject

:nodoc



11
12
13
# File 'lib/support/active_support_lite/symbol.rb', line 11

def to_proc
  Proc.new { |*args| args.shift.__send__(self, *args) }
end