Class: Slaw::Grammars::PL::Act::Point
Instance Method Summary
collapse
#intro_and_children_xml, #intro_node
Instance Method Details
#num ⇒ Object
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
|