# Macros

**URL:** <https://rubytalk.org/t/macros/8750>\
**Category:** ruby-talk\
**Created:** [11 November 2003 05:00 UTC](https://rubytalk.org/t/macros/8750 "2003-11-11T05:00:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![T\_Onoma](https://avatars.discourse-cdn.com/v4/letter/t/c2a13f/32.png) [@T\_Onoma](https://rubytalk.org/u/T_Onoma)\
**Post date:** [11 November 2003 05:00 UTC](https://rubytalk.org/t/macros/8750/1 "2003-11-11T05:00:48Z")

</div>

> Is (“/Path/To/%s/Directory” % [variable]) usable to you?  
> You can store string itself in some place, and then just do  
> (str % [variable])

limited, but would work in one case. thanks!

-t0
