From: James Byrne Date: 2009-07-15T01:02:19+09:00 Subject: array.include? I do not seem to GET it I have this set of constructs: def initialize(argv) @argv = argv end def start puts @argv.class puts @argv.size puts @argv @argv.include?('--update') ? puts("Includes update") : puts("No --update") ... which produces this output for a given input: Array 4 '-s /doc/data/fx-noon-all-2009-04-15.xml' '-f csv' '-o forex_testing' '--update' '-t' No --update Now. Here are the posers that I cannot answer. Why is #size == 4 rather than 5; and Why is '--update' listed when printing the array but it is not found in the same array by #include?('--update'). What is it that I am getting wrong here? -- Posted via http://www.ruby-forum.com/.