Class: Decidim::CheckBoxesTreeHelper::TreePoint

Inherits:
Struct
  • Object
show all
Defined in:
decidim-core/app/helpers/decidim/check_boxes_tree_helper.rb

Overview

struct for leafs of checkboxes trees

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



39
40
41
# File 'decidim-core/app/helpers/decidim/check_boxes_tree_helper.rb', line 39

def label
  @label
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



39
40
41
# File 'decidim-core/app/helpers/decidim/check_boxes_tree_helper.rb', line 39

def value
  @value
end

Instance Method Details

#tree_node?Boolean

Returns:

  • (Boolean)


40
41
42
# File 'decidim-core/app/helpers/decidim/check_boxes_tree_helper.rb', line 40

def tree_node?
  is_a?(TreeNode)
end