Class: MarkdownFormatter::ASTNode::SmartQuote
- Defined in:
- lib/markdown_formatter/nodes/smart_quote.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from MarkdownFormatter::ASTNode::Base
Instance Method Details
#to_s ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/markdown_formatter/nodes/smart_quote.rb', line 4 def to_s case node[:value] when /rsquo|lsquo/ ?' when /rdquo|ldquo/ ?" end end |