I create a method named splitDot which is spliting a dot "."
Inside a class, I call that method but I got the error.

This is the full error:

app/controllers/convert_to_yaml.rb:14: undefined method `splitDot' for
ConvertToYaml:Class (NoMethodError)
  from app/controllers/convert_to_yaml.rb:13:in `each'
  from app/controllers/convert_to_yaml.rb:13

My method:

  private

  def splitDot(s)
    return s.split('.')
  end

And I call the method like this:

text.each{|t|
    array = splitDot(t)
}

Any suggestions?

-- 
Posted via http://www.ruby-forum.com/.