class Xliffle::Note
Attributes
note[R]
priority[R]
Public Class Methods
new(note, options = {})
click to toggle source
# File lib/xliffle/note.rb, line 7 def initialize(note, options = {}) @note = note @priority = options[:priority] || 2 end
Public Instance Methods
to_xliff(xliff)
click to toggle source
# File lib/xliffle/note.rb, line 12 def to_xliff(xliff) xliff.tag!('note', { priority: @priority }, @note) end