From: Brian Candler Date: 2012-08-10T22:21:57+09:00 Subject: Re: fasterCSV meaning of a line Jan E. wrote in post #1071905: > arr = [1, 2, 3] > puts arr[0] # <-- this calls the "[]" method of the Array class Exactly. In this case, because ruby is a dynamic language, what precisely it does depends on what objects @parsers and in_quotes represent at runtime. So you need to work back through the code to find where they are set. At a guess, I would say @parsers is quite likely to be a Hash. If that's true, @parsers[:stray_quote] will get you the Hash value whose key is the symbol :stray_quote. >> parsers = {:fluffy=>123, :wombat=>456} => {:fluffy=>123, :wombat=>456} >> parsers[:fluffy] => 123 >> parsers[:wombat] => 456 But this isn't necessarily so; @parsers could be any object which implements a [] method. >> saytwice = lambda { |x| x + x } => # >> saytwice["hello"] => "hellohello" -- Posted via http://www.ruby-forum.com/.