Class: Decidim::CheckBoxesTreeHelper::TreeNode
- Inherits:
-
Struct
- Object
- Struct
- Decidim::CheckBoxesTreeHelper::TreeNode
- Defined in:
- 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
30 31 32 |
# File 'app/helpers/decidim/check_boxes_tree_helper.rb', line 30 def leaf @leaf end |
#node ⇒ Object
Returns the value of attribute node
30 31 32 |
# File 'app/helpers/decidim/check_boxes_tree_helper.rb', line 30 def node @node end |
Instance Method Details
#tree_node? ⇒ Boolean
31 32 33 |
# File 'app/helpers/decidim/check_boxes_tree_helper.rb', line 31 def tree_node? is_a?(TreeNode) end |