Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
block_example_3.rb
saasbook
Aug 15th, 2013
243
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
Ruby
0.18 KB
| None
|
0
0
raw
download
clone
embed
print
report
movies.
each
do
|
m
|
separator =
'=>'
# first assignment is inside a block!
puts
"#{m.title} #{separator} #{m.rating}"
# OK
end
puts
"Separator is #{separator}"
# === FAILS!! ===
Add Comment
Please,
Sign In
to add comment
Public Pastes
amazing snowybot 3.14
JavaScript | 12 min ago | 1.31 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🤑
GetText | 18 min ago | 0.39 KB
LButton Snip Hotkey (redundant).ahk
Autohotkey | 19 min ago | 0.86 KB
🤑 G2A.com Free Gift Card Guide May 2024 FIX 🎁
GetText | 38 min ago | 0.36 KB
aCis Double Click Augment
Java | 46 min ago | 5.47 KB
CWBVH 8-wide traversal
C | 46 min ago | 15.35 KB
Untitled
OCaml | 53 min ago | 0.70 KB
growthhelper.lua
Lua | 56 min ago | 2.90 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!