Class: FrenchPress::Post::Link
- Defined in:
- lib/frenchpress/post/link.rb
Overview
Represents a link post
Instance Attribute Summary
Attributes inherited from Generic
Instance Method Summary collapse
Methods inherited from Generic
#assign_variables, #derive_variables, #initialize, #render_as_quote, #render_with_tags, #tags
Constructor Details
This class inherits a constructor from FrenchPress::Post::Generic
Instance Method Details
#render ⇒ Object
5 6 7 8 |
# File 'lib/frenchpress/post/link.rb', line 5 def render "<h2><a href=\"#{@content}\">" \ "#{@content.delete('http://').delete('https://')}</a></h2>" end |