Module: NanDoc::Filters::TagParseInstanceMethods
- Included in:
- SeeTest
- Defined in:
- lib/nandoc/filters/tag-parse-instance-methods.rb
Instance Method Summary collapse
Instance Method Details
#unquote(str) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/nandoc/filters/tag-parse-instance-methods.rb', line 3 def unquote str case str when /\A'(.*)'\Z/ ; $1 when /\A"(.*)"\Z/ ; $1 else str end end |