Standard in ruby 1.9. See official documentation
# File lib/backports/1.9.1/symbol.rb, line 14 def <=>(with) return nil unless with.is_a? Symbol to_s <=> with.to_s end
Standard in ruby 1.9. See official documentation
# File lib/backports/1.9.1/symbol.rb, line 20 def casecmp(with) return nil unless with.is_a? Symbol to_s.casecmp(with.to_s) end
Standard in ruby 1.8.7+. See official documentation
# File lib/backports/1.8.7/symbol.rb, line 3 def to_proc Proc.new { |*args| args.shift.__send__(self, *args) } end
Generated with the Darkfish Rdoc Generator 2.