Sha256: c7292a8833d3c2200a75d951fba5eca21981e9c689f3187cb0bfd400c9021675
Contents?: true
Size: 460 Bytes
Versions: 2
Compression:
Stored size: 460 Bytes
Contents
require 'support/delegated' module V8 class String # On ruby 1.9+ we have to force UTF-8 encoding here... if RUBY_VERSION > "1.9" alias_method :native_to_utf8, :to_utf8 def to_utf8 native_to_utf8.force_encoding("UTF-8") end end alias_method :to_s, :to_utf8 include Comparable include Delegated def <=>(other) to_s <=> other end def delegate to_s end end # String end # V8
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mustang-0.1.1 | lib/v8/string.rb |
mustang-0.1.0 | lib/v8/string.rb |