Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/core_ext/string.rb
Instance Method Summary collapse
Instance Method Details
#to_d3_hash ⇒ Object
2 3 4 |
# File 'lib/core_ext/string.rb', line 2 def to_d3_hash self.each_char.inject(0) { |h, c| ((h * 0x21) + c.downcase.ord) & 0xFFFFFFFF } end |