Class: Decidim::CheckBoxesTreeHelper::TreeNode
- Inherits:
-
Struct
- Object
- Struct
- Decidim::CheckBoxesTreeHelper::TreeNode
- Defined in:
- decidim-core/app/helpers/decidim/check_boxes_tree_helper.rb
Overview
struct for nodes of checkboxes trees
Instance Attribute Summary collapse
-
#leaf ⇒ Object
Returns the value of attribute leaf.
-
#node ⇒ Object
Returns the value of attribute node.
Instance Method Summary collapse
Instance Attribute Details
#leaf ⇒ Object
Returns the value of attribute leaf
32 33 34 |
# File 'decidim-core/app/helpers/decidim/check_boxes_tree_helper.rb', line 32 def leaf @leaf end |
#node ⇒ Object
Returns the value of attribute node
32 33 34 |
# File 'decidim-core/app/helpers/decidim/check_boxes_tree_helper.rb', line 32 def node @node end |
Instance Method Details
#tree_node? ⇒ Boolean
33 34 35 |
# File 'decidim-core/app/helpers/decidim/check_boxes_tree_helper.rb', line 33 def tree_node? is_a?(TreeNode) end |