Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/bson/environment.rb
Overview
Making string in 1.8 respond like a 1.9 string, without any modifications.
Instance Method Summary collapse
-
#chr ⇒ Object
Simply return the string when asking for it’s character.
-
#encode ⇒ Object
Encode the string as the provided type.
-
#encode! ⇒ Object
Encode the string in place.
-
#force_encoding ⇒ Object
Force the string to the provided encoding.
Instance Method Details
#chr ⇒ Object
Simply return the string when asking for it’s character.
88 |
# File 'lib/bson/environment.rb', line 88 def chr; self; end |
#encode ⇒ Object
Encode the string as the provided type. NOOP.
98 |
# File 'lib/bson/environment.rb', line 98 def encode(*); self; end |
#encode! ⇒ Object
Encode the string in place. NOOP.
103 |
# File 'lib/bson/environment.rb', line 103 def encode!(*); self; end |
#force_encoding ⇒ Object
Force the string to the provided encoding. NOOP.
93 |
# File 'lib/bson/environment.rb', line 93 def force_encoding(*); self; end |