quote_unquote

Wraps (and unwraps) strings with quotes.

Installation

gem install quote_unquote

Examples

require 'quote_unquote'

"hello".q     # 'hello'
"hello".qq    # "hello"

"'hello'".uq  # hello
'"hello"'.uqq # hello

Copyright (c) 2011 Junegunn Choi. See LICENSE.txt for further details.