Class: Slaw::Grammars::PL::Act::Point

Inherits:
BlockWithIntroAndChildren show all
Defined in:
lib/slaw/grammars/pl/act_nodes.rb

Instance Method Summary collapse

Methods inherited from BlockWithIntroAndChildren

#intro_and_children_xml, #intro_node

Instance Method Details

#numObject



271
272
273
# File 'lib/slaw/grammars/pl/act_nodes.rb', line 271

def num
  point_prefix.number_letter.text_value
end

#to_xml(b, idprefix = '', i) ⇒ Object



275
276
277
278
279
280
281
282
283
# File 'lib/slaw/grammars/pl/act_nodes.rb', line 275

def to_xml(b, idprefix='', i)
  id = "#{idprefix}point-#{num}"
  idprefix = id + "."

  b.point(id: id) { |b|
    b.num(point_prefix.text_value)
    intro_and_children_xml(b, idprefix)
  }
end