Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/fake_chargify/string_patches.rb
Instance Method Summary collapse
Instance Method Details
#last(n) ⇒ Object
2 3 4 |
# File 'lib/fake_chargify/string_patches.rb', line 2 def last(n) self.chars.to_a.last(n).to_s end |