Class: Shipyard::Jekyll::Note
- Inherits:
-
Liquid::Block
- Object
- Liquid::Block
- Shipyard::Jekyll::Note
- Includes:
- NoteHelper
- Defined in:
- lib/shipyard-framework/jekyll/tags/note_tag.rb
Instance Method Summary collapse
-
#initialize(tag_name, type, options) ⇒ Note
constructor
A new instance of Note.
- #render(context) ⇒ Object
Methods included from NoteHelper
Constructor Details
#initialize(tag_name, type, options) ⇒ Note
Returns a new instance of Note.
8 9 10 11 |
# File 'lib/shipyard-framework/jekyll/tags/note_tag.rb', line 8 def initialize(tag_name, type, ) super @type = type.tr(':','').to_sym unless type.blank? end |
Instance Method Details
#render(context) ⇒ Object
13 14 15 |
# File 'lib/shipyard-framework/jekyll/tags/note_tag.rb', line 13 def render(context) note @type, raw(super.strip) end |