---
title: "Heredoc بدون استيفاء"
description: "أحيانًا تحتاجون إلى استخدام Heredoc في Ruby بدون استيفاء ('#{....}'). يمكنكم تحقيق ذلك بإحاطة الكلمة المفتاحية بعلامتي اقتباس مفردتين:"
canonical: https://oozou.com/til/heredoc-without-interpolation-74
locale: ar
date: 2020-10-14
topic: ruby
---

# Heredoc بدون استيفاء

> أحيانًا تحتاجون إلى استخدام Heredoc في Ruby بدون استيفاء ('#{....}'). يمكنكم تحقيق ذلك بإحاطة الكلمة المفتاحية بعلامتي اقتباس مفردتين:

Published: 2020-10-14 · Topic: [ruby](https://oozou.com/ar/til-topics/ruby) ([markdown](https://oozou.com/ar/til-topics/ruby.md))

أحيانًا تحتاجون إلى استخدام Heredoc في Ruby بدون استيفاء ('#\{....}'). يمكنكم تحقيق ذلك بإحاطة الكلمة المفتاحية بعلامتي اقتباس مفردتين:

```ruby
doc = <<-'SONG'
Business men, they drink my wine
#{person} dig my earth
None will level on the line
Nobody offered his word
Hey, hey
SONG
```

---

Contact OOZOU: hello@oozou.com · +66 2544 0000 · https://oozou.com/ar/contact

More for AI agents: https://oozou.com/llms.txt · every page has a markdown twin at its URL plus ".md"
