Yurttas/PL/SL/ruby/F/02/07/01/m 01.rb

From ZCubes Wiki
Jump to navigation Jump to search
 1#
 2#  Copyright(C) 2008
 3#  All Rights Reserved. Salih Yurttas, ZCubes, BitsOfCode Software Systems, Inc..
 4#
 5#  Permission to use, copy, modify, and distribute this
 6#  software and its documentation for EDUCATIONAL purposes
 7#  and without fee is hereby granted provided that this
 8#  copyright notice appears in all copies.
 9#
10#  date   : June 1, 2008.
11#  author : Salih Yurttas.
12#
13#  m_01.rb
14#
15
16
17fruits = "apple, apricot, orange, strawberry"
18fruits_list = fruits.split(/, /)
19
20puts fruits
21puts fruits_list
22
23fruits_list.push("watermelon")
24fruits_list_e = fruits_list.join(',')
25
26print "\n"
27
28puts fruits
29puts fruits_list