Changes

Jump to: navigation, search

Ruby String Replacement, Substitution and Insertion

No change in size, 15:13, 31 March 2009
no edit summary
</pre>
== Inserting Text Into into a Ruby String ==
<google>ADSDAQBOX_FLOW</google>
So far in this chapter we have looked exclusively at changing the existing text contained in a Ruby string object. Another common requirement is to insert new text at a certain location in a string. This is achieved in Ruby using the ''insert'' method. The insert method takes as arguments index position into the string where the insertion is take place, followed by the string to be inserted

Navigation menu