Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- movies.each do |m|
- separator = '=>' # first assignment is inside a block!
- puts "#{m.title} #{separator} #{m.rating}" # OK
- end
- puts "Separator is #{separator}" # === FAILS!! ===
Advertisement
Add Comment
Please, Sign In to add comment