module PureDocx::ClassMethods
Public Instance Methods
create(file_path, options = {}) { |doc| ... }
click to toggle source
# File lib/puredocx.rb, line 12 def create(file_path, options = {}) doc = Document.new(file_path, options) yield doc if block_given? doc.save! end