Method: Axlsx::Hyperlink#initialize
- Defined in:
- lib/axlsx/drawing/hyperlink.rb
#initialize(parent, options = {}) {|_self| ... } ⇒ Hyperlink
Creates a hyperlink object parent must be a Pic for now, although I expect that other object support this tag and its cNvPr parent
66 67 68 69 70 71 72 73 74 |
# File 'lib/axlsx/drawing/hyperlink.rb', line 66 def initialize(parent, ={}) DataTypeValidator.validate "Hyperlink.parent", [Pic], parent @parent = parent .each do |o| self.send("#{o[0]}=", o[1]) if self.respond_to? "#{o[0]}=" end yield self if block_given? end |