Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String.class_eval %Q{
- ["foo2", "bar2"].each do |dim|
- def say_#{dim}
- dim
- end
- end
- }
- NameError: undefined local variable or method `dim' for main:Object
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement