Class: Genit::ClassPagesTag
- Defined in:
- lib/genit/tags/class_pages_tag.rb
Overview
Replace the <genit class=“pages”/> in the template.
Instance Method Summary collapse
-
#initialize(working_dir, template, filename, tag) ⇒ ClassPagesTag
constructor
Public: Constructor.
-
#process ⇒ Object
Public: Do the replacement.
Methods inherited from Tag
Constructor Details
#initialize(working_dir, template, filename, tag) ⇒ ClassPagesTag
Public: Constructor.
working_dir - The String working directory, where live the project. template - The Nokogiri::XML::Document into which we process the tag. filename - The String name of the page tag - The tag to process as a Nokogiri::XML::Element
14 15 16 |
# File 'lib/genit/tags/class_pages_tag.rb', line 14 def initialize working_dir, template, filename, tag super working_dir, template, filename, tag end |
Instance Method Details
#process ⇒ Object
Public: Do the replacement.
Returns the template as a Nokogiri::XML::Document
21 22 23 |
# File 'lib/genit/tags/class_pages_tag.rb', line 21 def process replace_tag_into_template! 'genit.pages', page_content end |