class Desmoservice::LigatureEdit
Public Class Methods
new(xml)
click to toggle source
# File lib/edition.rb, line 114 def initialize(xml) @xml = xml end
Public Instance Methods
attr(attr_key, values)
click to toggle source
# File lib/edition.rb, line 141 def attr(attr_key, values) Edition.attr(@xml, attr_key, values) end
family(family_arg)
click to toggle source
# File lib/edition.rb, line 133 def family(family_arg) Edition.family(@xml, family_arg) end
key_prefix(key_prefix_arg)
click to toggle source
# File lib/edition.rb, line 145 def key_prefix(key_prefix_arg) Edition.key_prefix(@xml, key_prefix_arg) end
superior(superior_arg, context_arg=nil)
click to toggle source
# File lib/edition.rb, line 118 def superior(superior_arg, context_arg=nil) @xml << '<pere' Edition.to_attribute(@xml, superior_arg) if not context_arg.nil? if context_arg.is_a? Integer @xml << ' contexte="' << context_arg.to_s << '"' else index = context_arg.index('/') @xml << ' contexte-grille="' << context_arg[0,index] << '"' @xml << ' contexte-idctxt="' << context_arg[index+1..-1] << '"' end end @xml << '/>' end
text(lang, content)
click to toggle source
# File lib/edition.rb, line 137 def text(lang, content) Edition.text(@xml, lang, content) end