Class: Decidim::CheckBoxesTreeHelper::TreePoint
- Inherits:
-
Struct
- Object
- Struct
- Decidim::CheckBoxesTreeHelper::TreePoint
- Defined in:
- decidim-core/app/helpers/decidim/check_boxes_tree_helper.rb
Overview
struct for leafs of checkboxes trees
Instance Attribute Summary collapse
-
#label ⇒ Object
Returns the value of attribute label.
-
#root ⇒ Object
Returns the value of attribute root.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
Instance Attribute Details
#label ⇒ Object
Returns the value of attribute label
47 48 49 |
# File 'decidim-core/app/helpers/decidim/check_boxes_tree_helper.rb', line 47 def label @label end |
#root ⇒ Object
Returns the value of attribute root
47 48 49 |
# File 'decidim-core/app/helpers/decidim/check_boxes_tree_helper.rb', line 47 def root @root end |
#value ⇒ Object
Returns the value of attribute value
47 48 49 |
# File 'decidim-core/app/helpers/decidim/check_boxes_tree_helper.rb', line 47 def value @value end |
Instance Method Details
#root? ⇒ Boolean
52 53 54 |
# File 'decidim-core/app/helpers/decidim/check_boxes_tree_helper.rb', line 52 def root? root.present? || value.blank? end |
#tree_node? ⇒ Boolean
48 49 50 |
# File 'decidim-core/app/helpers/decidim/check_boxes_tree_helper.rb', line 48 def tree_node? is_a?(TreeNode) end |