Class: Polites::Block::List

Inherits:
Polites::Block show all
Defined in:
lib/polites/block/list.rb

Direct Known Subclasses

OrderedList, UnorderedList

Instance Attribute Summary collapse

Attributes inherited from Node

#children

Instance Method Summary collapse

Methods inherited from Polites::Block

build

Methods inherited from Node

#eql?, #text

Constructor Details

#initialize(children, level) ⇒ List

Returns a new instance of List.



9
10
11
12
# File 'lib/polites/block/list.rb', line 9

def initialize(children, level)
  super(children)
  @level = level
end

Instance Attribute Details

#levelObject (readonly)

Returns the value of attribute level.



7
8
9
# File 'lib/polites/block/list.rb', line 7

def level
  @level
end