Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- => [{:count=>473184777}]
- irb(main):005:0> cursor["count"]
- TypeError: can't convert String into Integer
- from (irb):5:in `[]'
- from (irb):5
- from C:/opscode/chef/embedded/bin/irb:12:in `<main>'
- irb(main):006:0> cursor[0]
- => {:count=>473184777}
- irb(main):007:0> cursor[0]["count"]
- => nil
- irb(main):008:0> cursor["count"]
- TypeError: can't convert String into Integer
- from (irb):8:in `[]'
- from (irb):8
- from C:/opscode/chef/embedded/bin/irb:12:in `<main>'
- irb(main):009:0> cursor[0]
- => {:count=>473184777}
- irb(main):010:0> cursor[:count]
- TypeError: can't convert Symbol into Integer
- from (irb):10:in `[]'
- from (irb):10
- from C:/opscode/chef/embedded/bin/irb:12:in `<main>'
- irb(main):011:0> cursor[":count"]
- TypeError: can't convert String into Integer
- from (irb):11:in `[]'
- from (irb):11
- from C:/opscode/chef/embedded/bin/irb:12:in `<main>'
- irb(main):012:0>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement