Class: Decidim::CheckBoxesTreeHelper::TreeNode

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

Overview

struct for nodes of checkboxes trees

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#leafObject

Returns the value of attribute leaf

Returns:

  • (Object)

    the current value of leaf



32
33
34
# File 'decidim-core/app/helpers/decidim/check_boxes_tree_helper.rb', line 32

def leaf
  @leaf
end

#nodeObject

Returns the value of attribute node

Returns:

  • (Object)

    the current value of node



32
33
34
# File 'decidim-core/app/helpers/decidim/check_boxes_tree_helper.rb', line 32

def node
  @node
end

Instance Method Details

#tree_node?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'decidim-core/app/helpers/decidim/check_boxes_tree_helper.rb', line 33

def tree_node?
  is_a?(TreeNode)
end