Skip to content

Instantly share code, notes, and snippets.

@ratnikov
Forked from rsl/gist:110175
Created May 11, 2009 21:16
Show Gist options
  • Save ratnikov/110193 to your computer and use it in GitHub Desktop.
Save ratnikov/110193 to your computer and use it in GitHub Desktop.
def para (attributes = {}, &block)
method_missing(:p, attributes, &block)
end
para do
<<-END_PARAGRAPH
Hello there. I love #{input 'inputting VARIOUS things'}. I also get a kick
out of #{code 'coding various things'}. There's such a thrill in
seeing all of the exciting #{output 'output you can get'} from a
well-written program.
END_PARAGRAPH
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment