Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/rpatch/utils.rb
Instance Method Summary collapse
Instance Method Details
#charat(n) ⇒ Object
117 118 119 120 |
# File 'lib/rpatch/utils.rb', line 117 def charat(n) result = self.send "[]", n RUBY_VERSION < "1.9" ? result.chr : result end |