Module: RbbCode::Attributes
- Included in:
- URLTagNode
- Defined in:
- lib/rbbcode/node_extensions.rb
Instance Method Summary collapse
-
#strip_quotes(str) ⇒ Object
Strips any number of double quotes from the beginning and end of the string.
Instance Method Details
#strip_quotes(str) ⇒ Object
Strips any number of double quotes from the beginning and end of the string.
4 5 6 |
# File 'lib/rbbcode/node_extensions.rb', line 4 def strip_quotes(str) str.sub(/^"+/, '').sub(/"+$/, '') end |