Class | Symbol |
In: |
lib/backports/1.8.7/symbol.rb
lib/backports/1.9.1/symbol.rb |
Parent: | Object |
Standard in ruby 1.9. See official documentation
# File lib/backports/1.9.1/symbol.rb, line 15 15: def <=>(with) 16: return nil unless with.is_a? Symbol 17: to_s <=> with.to_s 18: end
Standard in ruby 1.9. See official documentation
# File lib/backports/1.9.1/symbol.rb, line 21 21: def casecmp(with) 22: return nil unless with.is_a? Symbol 23: to_s.casecmp(with.to_s) 24: end
Standard in ruby 1.8.7+. See official documentation
# File lib/backports/1.8.7/symbol.rb, line 3 3: def to_proc 4: Proc.new { |*args| args.shift.__send__(self, *args) } 5: end