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



37
38
39
# File 'app/helpers/decidim/check_boxes_tree_helper.rb', line 37

def label
  @label
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



37
38
39
# File 'app/helpers/decidim/check_boxes_tree_helper.rb', line 37

def value
  @value
end

Instance Method Details

#tree_node?Boolean

Returns:

  • (Boolean)


38
39
40
# File 'app/helpers/decidim/check_boxes_tree_helper.rb', line 38

def tree_node?
  is_a?(TreeNode)
end