Class: Decidim::CheckBoxesTreeHelper::TreeNode

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



30
31
32
# File 'app/helpers/decidim/check_boxes_tree_helper.rb', line 30

def leaf
  @leaf
end

#nodeObject

Returns the value of attribute node

Returns:

  • (Object)

    the current value of node



30
31
32
# File 'app/helpers/decidim/check_boxes_tree_helper.rb', line 30

def node
  @node
end

Instance Method Details

#tree_node?Boolean

Returns:

  • (Boolean)


31
32
33
# File 'app/helpers/decidim/check_boxes_tree_helper.rb', line 31

def tree_node?
  is_a?(TreeNode)
end