Class: Alchemy::UserManual::Creator
- Inherits:
-
Object
- Object
- Alchemy::UserManual::Creator
- Includes:
- TemplateHelper
- Defined in:
- lib/alchemy/user_manual/creator.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #html_content ⇒ Object
-
#initialize(name = Rails.application.class.parent_name) ⇒ Creator
constructor
A new instance of Creator.
Constructor Details
#initialize(name = Rails.application.class.parent_name) ⇒ Creator
Returns a new instance of Creator.
11 12 13 14 |
# File 'lib/alchemy/user_manual/creator.rb', line 11 def initialize(name = Rails.application.class.parent_name) self.name = name @manual = self end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
9 10 11 |
# File 'lib/alchemy/user_manual/creator.rb', line 9 def name @name end |
Instance Method Details
#html_content ⇒ Object
16 17 18 |
# File 'lib/alchemy/user_manual/creator.rb', line 16 def html_content @content ||= GitHub::Markdown.render_gfm(render_content) end |