Class: Decidim::CheckBoxesTreeHelper::TreePoint

Inherits:
Struct
  • Object
show all
Defined in:
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


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

def label
  @label
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value


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

def value
  @value
end

Instance Method Details

#tree_node?Boolean

Returns:

  • (Boolean)
[View source]

41
42
43
# File 'app/helpers/decidim/check_boxes_tree_helper.rb', line 41

def tree_node?
  is_a?(TreeNode)
end