Class: BracketNotation::View::Branch

Inherits:
Node
  • Object
show all
Defined in:
lib/bracket_notation/views/branch.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Attributes inherited from Node

#align_to_grid, #children, #content, #parent, #rect, #tree

Instance Method Summary collapse

Methods inherited from Node

#ancestors, #corner_bottom_left, #corner_bottom_right, #corner_top_left, #corner_top_right, #left_sibling, #right_sibling, #side_middle_bottom, #side_middle_left, #side_middle_right, #side_middle_top, #subtree_size

Constructor Details

#initialize(tree, content) ⇒ Branch

Returns a new instance of Branch.



34
35
36
37
# File 'lib/bracket_notation/views/branch.rb', line 34

def initialize(tree, content)
  super
  @roll_up = false
end

Instance Attribute Details

#roll_upObject

Returns the value of attribute roll_up.



32
33
34
# File 'lib/bracket_notation/views/branch.rb', line 32

def roll_up
  @roll_up
end