<% define 'Windows', :for => Object do %> <% file "line_endings_windows.txt" do %> first line | second line | <% end %> <% end %>