Feature check :force_encoding instead of RUBY_VERSION

This commit is contained in:
Jeremy Kemper
2008-04-19 16:06:30 -07:00
parent db11ef9546
commit 715db1a797
2 changed files with 2 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
module ActiveSupport #:nodoc:
module CoreExtensions #:nodoc:
module String #:nodoc:
if RUBY_VERSION < '1.9'
unless '1.9'.respond_to?(:force_encoding)
# Makes it easier to access parts of a string, such as specific characters and substrings.
module Access
# Returns the character at the +position+ treating the string as an array (where 0 is the first character).

View File

@@ -1,7 +1,7 @@
module ActiveSupport #:nodoc:
module CoreExtensions #:nodoc:
module String #:nodoc:
if RUBY_VERSION < '1.9'
unless '1.9'.respond_to?(:force_encoding)
# Define methods for handling unicode data.
module Unicode
# +chars+ is a Unicode safe proxy for string methods. It creates and returns an instance of the