Advertisement
Guest User

Untitled

a guest
Jan 12th, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. => [{:count=>473184777}]
  2. irb(main):005:0> cursor["count"]
  3. TypeError: can't convert String into Integer
  4. from (irb):5:in `[]'
  5. from (irb):5
  6. from C:/opscode/chef/embedded/bin/irb:12:in `<main>'
  7. irb(main):006:0> cursor[0]
  8. => {:count=>473184777}
  9. irb(main):007:0> cursor[0]["count"]
  10. => nil
  11. irb(main):008:0> cursor["count"]
  12. TypeError: can't convert String into Integer
  13. from (irb):8:in `[]'
  14. from (irb):8
  15. from C:/opscode/chef/embedded/bin/irb:12:in `<main>'
  16. irb(main):009:0> cursor[0]
  17. => {:count=>473184777}
  18. irb(main):010:0> cursor[:count]
  19. TypeError: can't convert Symbol into Integer
  20. from (irb):10:in `[]'
  21. from (irb):10
  22. from C:/opscode/chef/embedded/bin/irb:12:in `<main>'
  23. irb(main):011:0> cursor[":count"]
  24. TypeError: can't convert String into Integer
  25. from (irb):11:in `[]'
  26. from (irb):11
  27. from C:/opscode/chef/embedded/bin/irb:12:in `<main>'
  28. irb(main):012:0>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement