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
33 34 35 |
# File 'app/helpers/decidim/check_boxes_tree_helper.rb', line 33 def leaf @leaf end |
#node ⇒ Object
Returns the value of attribute node
33 34 35 |
# File 'app/helpers/decidim/check_boxes_tree_helper.rb', line 33 def node @node end |
Instance Method Details
#tree_node? ⇒ Boolean
34 35 36 |
# File 'app/helpers/decidim/check_boxes_tree_helper.rb', line 34 def tree_node? is_a?(TreeNode) end |