Class: String
- Inherits:
- Object
- Defined in:
- example_code.rb
Method Summary
- - (Object) pig_latin Pig latin of a String.
Method Details
- (Object) pig_latin
Pig latin of a String
6 7 8 |
# File 'example_code.rb', line 6 def pig_latin self[1..-1] + self[0] + "ay" end |