Class: Knartform::ActionGroup
- Inherits:
-
Object
- Object
- Knartform::ActionGroup
- Defined in:
- lib/knartform/action_group.rb
Instance Attribute Summary collapse
-
#document ⇒ Object
Returns the value of attribute document.
-
#knart ⇒ Object
Returns the value of attribute knart.
-
#level ⇒ Object
Returns the value of attribute level.
-
#node ⇒ Object
Returns the value of attribute node.
Instance Method Summary collapse
-
#initialize(level = 0) ⇒ ActionGroup
constructor
A new instance of ActionGroup.
- #to_html ⇒ Object
Constructor Details
#initialize(level = 0) ⇒ ActionGroup
Returns a new instance of ActionGroup.
8 9 10 |
# File 'lib/knartform/action_group.rb', line 8 def initialize(level = 0) self.level = level end |
Instance Attribute Details
#document ⇒ Object
Returns the value of attribute document.
5 6 7 |
# File 'lib/knartform/action_group.rb', line 5 def document @document end |
#knart ⇒ Object
Returns the value of attribute knart.
3 4 5 |
# File 'lib/knartform/action_group.rb', line 3 def knart @knart end |
#level ⇒ Object
Returns the value of attribute level.
4 5 6 |
# File 'lib/knartform/action_group.rb', line 4 def level @level end |
#node ⇒ Object
Returns the value of attribute node.
6 7 8 |
# File 'lib/knartform/action_group.rb', line 6 def node @node end |
Instance Method Details
#to_html ⇒ Object
12 13 14 15 |
# File 'lib/knartform/action_group.rb', line 12 def to_html path = File.('../../views/action_group.slim', __FILE__) html = Slim::Template.new(path, pretty: true, disable_escape: true).render(self) end |