Module: EPUB::Publication::Package::ContentModel
Instance Method Summary collapse
Instance Method Details
#to_xml_attribute(node, model, attributes) ⇒ Object
91 92 93 94 95 96 |
# File 'lib/epub/maker/publication.rb', line 91 def to_xml_attribute(node, model, attributes) attributes.each do |attr| val = model.__send__(attr) node[attr.to_s.gsub('_', '-')] = val if val end end |