{"action":"closed","issue":{"url":"https://api.github.com/repos/makersacademy/ruby-kickstart/issues/228","labels_url":"https://api.github.com/repos/makersacademy/ruby-kickstart/issues/228/labels{/name}","comments_url":"https://api.github.com/repos/makersacademy/ruby-kickstart/issues/228/comments","events_url":"https://api.github.com/repos/makersacademy/ruby-kickstart/issues/228/events","html_url":"https://github.com/makersacademy/ruby-kickstart/issues/228","id":123230761,"number":228,"title":"2:3 - \"undefined method `each_index' for \"\":String\"","user":{"login":"marion-lv","id":13500328,"avatar_url":"https://avatars.githubusercontent.com/u/13500328?v=3","gravatar_id":"","url":"https://api.github.com/users/marion-lv","html_url":"https://github.com/marion-lv","followers_url":"https://api.github.com/users/marion-lv/followers","following_url":"https://api.github.com/users/marion-lv/following{/other_user}","gists_url":"https://api.github.com/users/marion-lv/gists{/gist_id}","starred_url":"https://api.github.com/users/marion-lv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/marion-lv/subscriptions","organizations_url":"https://api.github.com/users/marion-lv/orgs","repos_url":"https://api.github.com/users/marion-lv/repos","events_url":"https://api.github.com/users/marion-lv/events{/privacy}","received_events_url":"https://api.github.com/users/marion-lv/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-21T08:30:04Z","updated_at":"2015-12-21T13:55:38Z","closed_at":"2015-12-21T13:55:38Z","body":"So, I was trying to take inspiration from 1:6 as it seemed to be asking for the same sort of actions, but I just keep getting the same error and I'm not sure how to fix it.\r\n\r\nThe error is:\r\n1) String#every_other_char \"\" -> \"\"\r\n     Failure/Error: expect(\"\".every_other_char).to eq \"\"\r\n     \r\n     NoMethodError:\r\n       undefined method `each_index' for \"\":String\r\n     # ./session2/3-challenge/3_array.rb:10:in `every_other_char'\r\n     # ./session2/4-spec/3.rb:3:in `block (2 levels) in <top (required)>'\r\n\r\nAnd my code is:\r\n\r\nclass String\r\n  def every_other_char\r\n  self.split(\",\").values_at(* self.each_index.select {|i| i.even?}).join('')\r\n  end\r\nend"}}