# Creating Snippets With Code

> Episode of [TextMate Screencast](https://podistic.com/podcast/textmate-screencast.md) · Published June 11, 2008

- **Listen on Podistic:** https://podistic.com/episode/creating-snippets-with-code
- **Video:** http://drnicwilliams.com/wp-content/uploads/2008/06/textmate-snippets-running-ruby.mov (video/quicktime)

## About this episode

In this screencast Dr Nic shows how a simple class snippet can be made smart and use embedded ruby code to derive the class name from the current file name.

[link](http://drnicwilliams.com/2008/06/11/using-ruby-within-textmate-snippets-and-commands/)
